From patchwork Mon Jun 19 14:18:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 110044 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3062834vqr; Mon, 19 Jun 2023 08:00:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6byO/f//kJxvae3k3VFQpE1DqbilBJoQvQW9h2B3ciCy8RZSN5bJ438va+jpZrFWSesyl8 X-Received: by 2002:a05:6a20:728a:b0:115:2b4d:1fce with SMTP id o10-20020a056a20728a00b001152b4d1fcemr13378091pzk.12.1687186822470; Mon, 19 Jun 2023 08:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687186822; cv=none; d=google.com; s=arc-20160816; b=deuSz9X2oSSwMpYJFRmtz2j8DMqiS71+0+eo1Pm0SX9V6T0hDQjcMpy8xTTvvRft52 MelEQfiGeNveQfm5zba4aIwYbZVJs6dCdUVcSooJGjOJf7/tHfy2lIc515ZLvwf20Q01 A8n3RR1KHqcW5BACQGaPUcC/VQ5wO+/4hggWjTh2a1dX4wMulEq1Nf079xnEwR0SxGYu zqrjf2IaX4aie9KZGtl+2Dj/sBK+pCibyyySyk1uaC7h2YrFDZovR4w+XqWAML5i+k57 t1kofugtKR3BZ7JdBxKFm50waRTZv5pHxqhRVBN5KtmF0G40J09h2h1HSGSCsj5kxHOt lb7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j3rO86JQ5SHM0eemJ/VqPbGFU0io6tHVoiFzDxr8Og0=; b=h4OvYOfJyPMdPTPkb1e2tyEp+qmKS9cTBGHM0N2U8Jmpd47nr5uUT2Q/B+pNbz+P51 f4pY2QmklRmWZIz68qP7r1wtIFMRIrX28zhvxaK8eDqoNXUxbRRBaoz5KfxgNFyw4RoM snTAocyEDSFWNORMwvFbxzLqKL7ZICfyJ2WGiTdhlNikiAAX4ifQ/XsnDf2WSiBUQZSX VHU94uarmcqWLiW91CdcTe5ucD91OOs2m9MaAYrPS4VpI3zzL+0KvU8jUWAlVy6MJ5Sl +DFvSi9fmjEJ3q4nM3JyszIdg9kspq/0VWAhhko570ITEjI1eoI6kU8nrCsMkNURXSJ+ eC/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=elw+cl1r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a170902ec8200b001adbfba9c29si17895568plg.409.2023.06.19.08.00.09; Mon, 19 Jun 2023 08:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=elw+cl1r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232171AbjFSOTF (ORCPT + 99 others); Mon, 19 Jun 2023 10:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232184AbjFSOTD (ORCPT ); Mon, 19 Jun 2023 10:19:03 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A3AE64 for ; Mon, 19 Jun 2023 07:19:02 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1b51780c1b3so28157205ad.1 for ; Mon, 19 Jun 2023 07:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687184342; x=1689776342; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=j3rO86JQ5SHM0eemJ/VqPbGFU0io6tHVoiFzDxr8Og0=; b=elw+cl1rlqwKShs5z+o3pnWcbAKateNwHR4iLX+c7aQT3ymfwK7pTPJmAqbKBxIozO Lx4k7TRunfRXhNXl8RIKNItivmqVNgaTu3/iHzhaEun4j7XVlXTGM9WlHNsSlLpJ7J8P LtTNTtA6k20Z5mdVQw5I2d78vKjQYtNjj5nfpDZcnu4UYWvq+F5ptFxuunsK+si2sezK HjiKyVQPFRSSMfXFFkaocvXyLgN2LS+ReyHAeQ2q1B5MD59+AyYHdaQTEdOp0RFiLMmD JFlVjKoupWnaF1c/Q2Vatgs4MmsmOZWTolXHU3SHmCjLsgm36LUoztHhpt4k8rn6OMO/ tnSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687184342; x=1689776342; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j3rO86JQ5SHM0eemJ/VqPbGFU0io6tHVoiFzDxr8Og0=; b=d7UADQcAWHD60mWp0fHBewLgwVWAciH7ueuZAwZHP77cDG68ljL4f0hnAtcShR88nf XDPGMFrV1i2zkPxxkBylKCmY7z1FljL3mAcK+gcUg3zQpm6t5uSQHaKtq2Kar0QxVApC YtJEkwmDq9ghPM50VbodNGn0ztqSln2Fq+c9WpH2D0pF6lpMX32XfUmqQzVcvu3mGWCX vzq5El1AxM6cAZqqStN8/VfsX4UBE6Rgb0FLjMp8RXSfdA1wWk0oxRDVBnIWVcJOW+4Q kXLidaylS9wyQEXruMVh2KNs/IaZx/s7hPY8wVYHnzHQrXHL1iEzzhMV+SfdbpWbPMYc 984g== X-Gm-Message-State: AC+VfDxVQYRofRDsCcAZT307IYbNSCzceLHIib5pjoSKxfYvCE6QtFrE ov2geRKRf9iOnX5d9UfFk3c= X-Received: by 2002:a17:902:d485:b0:1b6:79fe:3832 with SMTP id c5-20020a170902d48500b001b679fe3832mr281315plg.69.1687184342004; Mon, 19 Jun 2023 07:19:02 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.211]) by smtp.gmail.com with ESMTPSA id u3-20020a17090341c300b001aaecc15d66sm20560820ple.289.2023.06.19.07.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 07:19:01 -0700 (PDT) Date: Mon, 19 Jun 2023 19:48:57 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: dan.carpenter@linaro.org, philipp.g.hortmann@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH v4 4/4] staging: rtl8192e: Rename variable InitialGainHandler Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769143609604972166?= X-GMAIL-MSGID: =?utf-8?q?1769143609604972166?= Rename variable InitialGainHandler to init_gain_handler to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- v4: Rebase to latest staging-testing branch as suggested by Greg Kroah-Hartman . v3: Revert back to v1 of the patch as suggested by Greg Kroah-Hartman . v2: Removed the variable and called the function directly instead of just renaming the variable as suggested by Greg Kroah-Hartman . --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index 7b0da55fa7aa..267fc6f8800e 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -1109,11 +1109,11 @@ void rtl92e_scan_op_backup(struct net_device *dev, u8 Operation) if (priv->up) { switch (Operation) { case SCAN_OPT_BACKUP: - priv->rtllib->InitialGainHandler(dev, IG_Backup); + priv->rtllib->init_gain_handler(dev, IG_Backup); break; case SCAN_OPT_RESTORE: - priv->rtllib->InitialGainHandler(dev, IG_Restore); + priv->rtllib->init_gain_handler(dev, IG_Restore); break; } } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 631cbe016ea9..4447489a16ea 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -734,7 +734,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->SetHwRegHandler = rtl92e_set_reg; priv->rtllib->AllowAllDestAddrHandler = rtl92e_set_monitor_mode; - priv->rtllib->InitialGainHandler = rtl92e_init_gain; + priv->rtllib->init_gain_handler = rtl92e_init_gain; priv->rtllib->rtllib_ips_leave_wq = rtl92e_rtllib_ips_leave_wq; priv->rtllib->rtllib_ips_leave = rtl92e_rtllib_ips_leave; priv->rtllib->ScanOperationBackupHandler = rtl92e_scan_op_backup; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 37e6fcd4b1ec..dbf78b60dd78 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1693,7 +1693,7 @@ struct rtllib_device { void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode); bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev); u8 (*rtllib_ap_sec_type)(struct rtllib_device *ieee); - void (*InitialGainHandler)(struct net_device *dev, u8 Operation); + void (*init_gain_handler)(struct net_device *dev, u8 Operation); void (*ScanOperationBackupHandler)(struct net_device *dev, u8 Operation); void (*SetHwRegHandler)(struct net_device *dev, u8 variable, u8 *val);