Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5139930rwd; Sun, 18 Jun 2023 06:08:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bvzurYEIvWZcDtlW6V1rpd9016IaKDYJOx15mvHUOodt0jFa1ieszKxGR+jMzjqBAcYcE X-Received: by 2002:a05:6a00:3919:b0:643:aa8d:8cd7 with SMTP id fh25-20020a056a00391900b00643aa8d8cd7mr5112066pfb.32.1687093707703; Sun, 18 Jun 2023 06:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687093707; cv=none; d=google.com; s=arc-20160816; b=hmp7Vs26dbkg5xB2zSny4li8YxRjAzIhja/SNi0xHcgkeF7+tF+Gv18U/c8Cpc695d aZieiLlIZSfVK9FBNXoBv0jyDIO3xA4ctqNGrHpza9o8XgBOwkh7c9vncsdbb07UzWCn RkkErBQSXKlpmQyztecOIgs8alilasV8uxZSPBNJep/gATz4ttaZSpFDVm0QsYresrPh FeNMRxx74zfH9GgK54CnXawi3RQ4hMuB7TSGFHMcPu6nPzRIiY2NRr92+vWfpKHov1No WXVipauUF0PUSXXcXIKtc0Na294XozZylgDJLnyA/2p7XUdxxyVAgb6TmflJst0PHZK+ icRA== 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=Awvoaf5eSwNCHFdEadyIQRz9usUvjf5nZIyeulxK9fU=; b=0rSt+eWHMLG9REZHmVcb0YjJlLAR1dfuh5Z1XnPye3lLDew2UTFhrN7eSxCCuaVzRW vbUkNxMNgVCt2WyKOwhqVs3SK7nUAMKeUPe42R7F/+7vI93+nmhbGV7NeUsMD7PPangD d7ziXMz7DkuD3Q+r+DzKUWtIe0CLc2I8g/ykNqtyjZy2kfXFCd8ewfhxU+MaQiQ93lZT 5oTfCS7cFbGSkIh8qSsJBkt9xbCNs2uQYOIvQOfijrovD0T5rp9+TMge5m9H/MdeI5RW JYv4I4utTpHKvSQMrjsv1HIgXggs5txTimIayGzxr4LUFEVMNqW1YZht/X4+4D4gVIT6 FfQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SnvACYEP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020aa79785000000b00654355ac8a5si18897505pfp.56.2023.06.18.06.08.12; Sun, 18 Jun 2023 06:08:27 -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=SnvACYEP; 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 S229551AbjFRNFw (ORCPT + 99 others); Sun, 18 Jun 2023 09:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjFRNFv (ORCPT ); Sun, 18 Jun 2023 09:05:51 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD481AB for ; Sun, 18 Jun 2023 06:05:50 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6682909acadso173901b3a.3 for ; Sun, 18 Jun 2023 06:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687093550; x=1689685550; 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=Awvoaf5eSwNCHFdEadyIQRz9usUvjf5nZIyeulxK9fU=; b=SnvACYEPoPdUseu8hBkro1tuItr+rEyu2aa27tx7DHMkjC/9oXwfzg/R6cDOrSie6x wZls5Gu9hOtqWtK2cvK4qYeulAJL89Vt8sE3OLCd0UbDVBFmLFPMpoOgTwN0y5t1j+KQ /P2yC//YMPxlfdHa1uLhvT/MzGAeD3CR41tAPldRCM3+VZk3keLInzlOWDRqLM2IKOs2 sdjtE1yvvCzW7n/LjnuIKl8kvYnHNMaMZwBtP5QXdZDXxwQkov8FlET2LPdtP3OmsHR8 V3ZYRkDY2z+6z2bYkXjnmZGScXxXaTste1BnR/w7mx4LvP18oPS3iUgyfirgT9fWxYbk 4NhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687093550; x=1689685550; 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=Awvoaf5eSwNCHFdEadyIQRz9usUvjf5nZIyeulxK9fU=; b=JlKBiTrDxR0BJsyABJbokXI/nMY5thme0k8qOGdsbYuFligJ5GtkgJu7ZpjAVbq0ic Hxju2VCiXBgh+KYxq3PyONXBt+BkCoPwTzMTztZEi8ORZ0Mbe8QyCpFrMx26Xg1SANYx s7yVEqnMMYQxPkNwQuJrqS6W2CRvMiqDawqf79QU8zVUdrTTMPZv4dBneOvX3fst46vw GTAh0ygo+/QmgrOXSMfGrWtPQuDTz6zst0d9aPyRxjHEN5RryVG7zHVcrJ55CePO/wXl 7cEJq7uhvNRywvpZHg/RG1QSS6Y1ssa82eMMrLr+azgZK0C2mPq8edFoOK+3nqwgfRU8 aJYg== X-Gm-Message-State: AC+VfDzCb5LZkRuDts5ZblFhqyLLWvUibwIx+X34rEGM8zgiiSnNfbAn zC4tFek2cWagIb+O9u1Dlzm3WjhURBE= X-Received: by 2002:a05:6a20:8f06:b0:104:873:c3b5 with SMTP id b6-20020a056a208f0600b001040873c3b5mr5440001pzk.44.1687093550144; Sun, 18 Jun 2023 06:05:50 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.211]) by smtp.gmail.com with ESMTPSA id 18-20020a056a00073200b0063d2cd02d69sm16137148pfm.54.2023.06.18.06.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jun 2023 06:05:49 -0700 (PDT) Date: Sun, 18 Jun 2023 18:35:43 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , 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 v3 2/4] staging: rtl8192e: Rename variable SetBWModeHandler Message-ID: <6c929da448e04393d1259de820bbcb78f0e2a409.1687092111.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Rename variable SetBWModeHandler to set_bw_mode_handler to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- 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/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 6 +++--- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 699c4accf2db..68e921a3a0a8 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -718,7 +718,7 @@ static void _rtl92e_init_priv_handler(struct net_device *dev) priv->rtllib->handle_beacon = _rtl92e_handle_beacon; priv->rtllib->set_wireless_mode = rtl92e_set_wireless_mode; priv->rtllib->LeisurePSLeave = rtl92e_leisure_ps_leave; - priv->rtllib->SetBWModeHandler = rtl92e_set_bw_mode; + priv->rtllib->set_bw_mode_handler = rtl92e_set_bw_mode; priv->rf_set_chan = rtl92e_set_channel; priv->rtllib->start_send_beacons = rtl92e_start_beacon; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index fe30a291e64c..1fe504244437 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -835,11 +835,11 @@ static void HTSetConnectBwModeCallback(struct rtllib_device *ieee) ieee->set_chan(ieee->dev, ieee->current_network.channel); - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20_40, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20_40, ht_info->CurSTAExtChnlOffset); } else { ieee->set_chan(ieee->dev, ieee->current_network.channel); - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index f91355de17f7..e79510258447 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1704,9 +1704,9 @@ struct rtllib_device { /* check whether Tx hw resource available */ short (*check_nic_enough_desc)(struct net_device *dev, int queue_index); - void (*SetBWModeHandler)(struct net_device *dev, - enum ht_channel_width bandwidth, - enum ht_extchnl_offset Offset); + void (*set_bw_mode_handler)(struct net_device *dev, + enum ht_channel_width bandwidth, + enum ht_extchnl_offset Offset); bool (*GetNmodeSupportBySecCfg)(struct net_device *dev); void (*set_wireless_mode)(struct net_device *dev, u8 wireless_mode); bool (*GetHalfNmodeSupportByAPsHandler)(struct net_device *dev); diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c index d6d90e6ba2d3..6a7738a828e1 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -335,7 +335,7 @@ void rtllib_wx_sync_scan_wq(void *data) b40M = 1; chan_offset = ieee->ht_info->CurSTAExtChnlOffset; bandwidth = (enum ht_channel_width)ieee->ht_info->bCurBW40MHz; - ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, + ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } @@ -348,7 +348,7 @@ void rtllib_wx_sync_scan_wq(void *data) ieee->set_chan(ieee->dev, chan - 2); else ieee->set_chan(ieee->dev, chan); - ieee->SetBWModeHandler(ieee->dev, bandwidth, chan_offset); + ieee->set_bw_mode_handler(ieee->dev, bandwidth, chan_offset); } else { ieee->set_chan(ieee->dev, chan); } -- 2.34.1