From nobody Wed Dec 17 09:16:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF706C4167B for ; Tue, 28 Nov 2023 18:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbjK1SRU (ORCPT ); Tue, 28 Nov 2023 13:17:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234638AbjK1SRS (ORCPT ); Tue, 28 Nov 2023 13:17:18 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671D71990 for ; Tue, 28 Nov 2023 10:17:24 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D23345C01E9; Tue, 28 Nov 2023 13:17:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 28 Nov 2023 13:17:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1701195443; x= 1701281843; bh=DGt/u5VtnW/s5etlOXvVuEt4iqTg+WUDCBQcBJzdb9s=; b=L 88rWrZd+XyCW2CLPeh73uDIHOW8Y6+GD0nMUCcUVK6XnU4VgwvpbXVI4pvBnU95A Ur7hiiUmhejrrEfvL46aHMcLODRjzN0dQQuyOneY77Rju0kKYbne+Xwwz682zoSB aS7tN8rK5NxNS2ryrzU/ig7nfk9gU1i+ii0+VZaHLZOFv9w9xWizT/7hwK+lGRqm txAHE99pCrLA8A16gBsxNkqGwXSA6RZU78xnYtOKAAeIgkMtwvFLAcOfxSUNVZSj 4VLdXSUabn5dpMy0Hx1wtTfYB8lQZhjsige04NRa9Hb2JkJ4MxQ4HS/iLKDqYUes QxDTOtfbvzvA0V7UF583g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701195443; x= 1701281843; bh=DGt/u5VtnW/s5etlOXvVuEt4iqTg+WUDCBQcBJzdb9s=; b=K 6b7FxNhVk0ktnPxP6roBlqPDlNY+SJFXFWBFBcwNzW04z4DskvV2c/3AItMKwFIp GL8T4UxyfQRn6LSpHVw96aA0Rsjxp454mJyjmRe2AnYcTmFH26Fw6aSHHVhrb9NX 9gF6eiBpWa3dmbFFhuAoTCBEETS/7x3K9MQtjLTAJsLO9PM6qJw7izdWw6G1FJpG h3wVJ3FBCHFfb3TuWiOmk3rkSvQ2lTWltkU8fWJECYiHh6eG0SLt8ry3ZIrDtui8 ctLxRoKWhsbFC6mQ3WIAvv+1FQwNtgAvy1r36PJaSsgkBQ0mnjFB96zS6eeP+7J+ RcWiyRnYhuZYATfxrzgpQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 13:17:23 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH v3 1/3] staging: rtl8192e: renamed variable nMcsRate Date: Tue, 28 Nov 2023 13:17:25 -0500 Message-ID: <20231128181727.19504-2-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128181727.19504-1-garyrookard@fastmail.org> References: <20231128181727.19504-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Coding style issue, checkpatch Avoid CamelCase, rename it nMcsRate -> mcs_rate. Signed-off-by: Gary Rookard --- v3: Corrects commit message style issues. v2: Style issues, redo. v1: Style issues, redo. drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 00273d709f3c..4ed72936eb4a 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -103,7 +103,7 @@ void ht_update_default_setting(struct rtllib_device *ie= ee) ht_info->rx_reorder_pending_time =3D 30; } =20 -static u16 ht_mcs_to_data_rate(struct rtllib_device *ieee, u8 nMcsRate) +static u16 ht_mcs_to_data_rate(struct rtllib_device *ieee, u8 mcs_rate) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 @@ -111,7 +111,7 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ie= ee, u8 nMcsRate) u8 isShortGI =3D (ht_info->bCurBW40MHz) ? ((ht_info->bCurShortGI40MHz) ? 1 : 0) : ((ht_info->bCurShortGI20MHz) ? 1 : 0); - return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate & 0x7f)]; + return MCS_DATA_RATE[is40MHz][isShortGI][(mcs_rate & 0x7f)]; } =20 u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate) --=20 2.41.0 From nobody Wed Dec 17 09:16:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EAD3C07CA9 for ; Tue, 28 Nov 2023 18:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345571AbjK1SRX (ORCPT ); Tue, 28 Nov 2023 13:17:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234849AbjK1SRU (ORCPT ); Tue, 28 Nov 2023 13:17:20 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53CBD198D for ; Tue, 28 Nov 2023 10:17:26 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BF7455C0206; Tue, 28 Nov 2023 13:17:25 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 28 Nov 2023 13:17:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1701195445; x= 1701281845; bh=QyA4RMn8/txYq9pB/6ofEzbBbltRNdrvYu4fi2NIbkU=; b=c BRKsTb9QHy/vwk4Og18WZ5TOKosla44oavu2rvz18SzxkHqDwjMJs2qBg7W18uzK drx4rxL3Pyj47eRwfdJIQNC0GVJuBDlq1Of3mEjViliu0gmYRj8wE3cxs4aRtXum cF7WwNcYg2fmH5Ko6zkuseMM7E4mCycXYlxN7kG4aSd3iDx/Mr7ABOCTaZW+C0P9 ILisV9sITTaPq5Lql0OqyVpAqRN0SWmgT6jnTzXftqPntPCtqpwdOR8yxoGpFULJ H0DLQl1x9CcuV448j4DuGROjs+Ku+HsLercr2mKKRbh/xTQ2rTWTD9NlEsLcFuo8 Jkq/+CiwmD0fFK05MZ3Cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701195445; x= 1701281845; bh=QyA4RMn8/txYq9pB/6ofEzbBbltRNdrvYu4fi2NIbkU=; b=H KHyQvDLorNTAissGFSYFaAGzEzH0sIumTSKfEUUFyq+0wtDMeOoQxE4hzRi0J//6 JLezu2mC9ft2BIonvKzYBJX1pbM9q8mxw/VRO8/U/nDWqpNaKtXRMPO1gzkTJ00Y f6Qdil60pgSTNC0dRPBFt87muoDN5RlAti5g2upk9ZoPmgFc/kMba4iMUdVVu7uv aFf3UXHcKJGDaUse2e9QhXm9WUCCkvk8Qx8zX+v1GpT7ExUxZJMa7NClnL7jfP3X CqlWsJXLVc6gFzegj+nJZgtXcEemEeucyDegdz0yC1CeQKz99MzQ/mTXelw/up6k a4vhQmwJljT7L7R9rM+sA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 13:17:25 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH v3 2/3] staging: rtl8192e: renamed variable bCurBW40MHz Date: Tue, 28 Nov 2023 13:17:26 -0500 Message-ID: <20231128181727.19504-3-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128181727.19504-1-garyrookard@fastmail.org> References: <20231128181727.19504-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Coding style issue, checkpatch Avoid CamelCase, rename it bCurBW40MHz -> cur_bw_40mhz. Signed-off-by: Gary Rookard --- v3: Corrects commit message style issues. v2: Style issues, redo. v1: Style issues, redo. drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 16 ++++++++-------- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl819= 2e/rtl819x_HT.h index a4fe72943b36..dd86faab6f53 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -95,7 +95,7 @@ struct rt_hi_throughput { u8 enable_ht; u8 current_ht_support; u8 bRegBW40MHz; - u8 bCurBW40MHz; + u8 cur_bw_40mhz; u8 bRegShortGI40MHz; u8 bCurShortGI40MHz; u8 bRegShortGI20MHz; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 4ed72936eb4a..87e96f2abed0 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -107,8 +107,8 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ie= ee, u8 mcs_rate) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - u8 is40MHz =3D (ht_info->bCurBW40MHz) ? 1 : 0; - u8 isShortGI =3D (ht_info->bCurBW40MHz) ? + u8 is40MHz =3D (ht_info->cur_bw_40mhz) ? 1 : 0; + u8 isShortGI =3D (ht_info->cur_bw_40mhz) ? ((ht_info->bCurShortGI40MHz) ? 1 : 0) : ((ht_info->bCurShortGI20MHz) ? 1 : 0); return MCS_DATA_RATE[is40MHz][isShortGI][(mcs_rate & 0x7f)]; @@ -559,7 +559,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) =20 ht_info->current_ht_support =3D false; =20 - ht_info->bCurBW40MHz =3D false; + ht_info->cur_bw_40mhz =3D false; ht_info->cur_tx_bw40mhz =3D false; =20 ht_info->bCurShortGI20MHz =3D false; @@ -705,7 +705,7 @@ static void HTSetConnectBwModeCallback(struct rtllib_de= vice *ieee) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 - if (ht_info->bCurBW40MHz) { + if (ht_info->cur_bw_40mhz) { if (ht_info->CurSTAExtChnlOffset =3D=3D HT_EXTCHNL_OFFSET_UPPER) ieee->set_chan(ieee->dev, ieee->current_network.channel + 2); @@ -750,19 +750,19 @@ void HTSetConnectBwMode(struct rtllib_device *ieee, Offset =3D HT_EXTCHNL_OFFSET_NO_EXT; if (Offset =3D=3D HT_EXTCHNL_OFFSET_UPPER || Offset =3D=3D HT_EXTCHNL_OFFSET_LOWER) { - ht_info->bCurBW40MHz =3D true; + ht_info->cur_bw_40mhz =3D true; ht_info->CurSTAExtChnlOffset =3D Offset; } else { - ht_info->bCurBW40MHz =3D false; + ht_info->cur_bw_40mhz =3D false; ht_info->CurSTAExtChnlOffset =3D HT_EXTCHNL_OFFSET_NO_EXT; } } else { - ht_info->bCurBW40MHz =3D false; + ht_info->cur_bw_40mhz =3D false; ht_info->CurSTAExtChnlOffset =3D HT_EXTCHNL_OFFSET_NO_EXT; } =20 netdev_dbg(ieee->dev, "%s():ht_info->bCurBW40MHz:%x\n", __func__, - ht_info->bCurBW40MHz); + ht_info->cur_bw_40mhz); =20 ht_info->sw_bw_in_progress =3D true; =20 diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging= /rtl8192e/rtllib_softmac_wx.c index 28aba1d610f7..b48c89d2e7bf 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -318,10 +318,10 @@ void rtllib_wx_sync_scan_wq(void *data) ieee->ScanOperationBackupHandler(ieee->dev, SCAN_OPT_BACKUP); =20 if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht && - ieee->ht_info->bCurBW40MHz) { + ieee->ht_info->cur_bw_40mhz) { b40M =3D 1; chan_offset =3D ieee->ht_info->CurSTAExtChnlOffset; - bandwidth =3D (enum ht_channel_width)ieee->ht_info->bCurBW40MHz; + bandwidth =3D (enum ht_channel_width)ieee->ht_info->cur_bw_40mhz; ieee->set_bw_mode_handler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); } diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192= e/rtllib_tx.c index 1da098f5b84c..a79f9d8c9162 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -362,9 +362,9 @@ static void rtllib_query_HTCapShortGI(struct rtllib_dev= ice *ieee, return; } =20 - if (ht_info->bCurBW40MHz && ht_info->bCurShortGI40MHz) + if (ht_info->cur_bw_40mhz && ht_info->bCurShortGI40MHz) tcb_desc->bUseShortGI =3D true; - else if (!ht_info->bCurBW40MHz && ht_info->bCurShortGI20MHz) + else if (!ht_info->cur_bw_40mhz && ht_info->bCurShortGI20MHz) tcb_desc->bUseShortGI =3D true; } =20 @@ -383,7 +383,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_de= vice *ieee, =20 if ((tcb_desc->data_rate & 0x80) =3D=3D 0) return; - if (ht_info->bCurBW40MHz && ht_info->cur_tx_bw40mhz && + if (ht_info->cur_bw_40mhz && ht_info->cur_tx_bw40mhz && !ieee->bandwidth_auto_switch.bforced_tx20Mhz) tcb_desc->bPacketBW =3D true; } @@ -441,9 +441,9 @@ static void rtllib_query_protectionmode(struct rtllib_d= evice *ieee, if (ht_info->current_ht_support && ht_info->enable_ht) { u8 HTOpMode =3D ht_info->current_op_mode; =20 - if ((ht_info->bCurBW40MHz && (HTOpMode =3D=3D 2 || + if ((ht_info->cur_bw_40mhz && (HTOpMode =3D=3D 2 || HTOpMode =3D=3D 3)) || - (!ht_info->bCurBW40MHz && HTOpMode =3D=3D 3)) { + (!ht_info->cur_bw_40mhz && HTOpMode =3D=3D 3)) { tcb_desc->rts_rate =3D MGN_24M; tcb_desc->bRTSEnable =3D true; break; --=20 2.41.0 From nobody Wed Dec 17 09:16:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D02DAC46CA0 for ; Tue, 28 Nov 2023 18:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234905AbjK1SR3 (ORCPT ); Tue, 28 Nov 2023 13:17:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjK1SRV (ORCPT ); Tue, 28 Nov 2023 13:17:21 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF1E19A7 for ; Tue, 28 Nov 2023 10:17:28 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 849B55C0231; Tue, 28 Nov 2023 13:17:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 28 Nov 2023 13:17:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1701195447; x= 1701281847; bh=oxM763CPfUKKm3nWjlOEREGsogFX5ol8jOZHd4mRtRE=; b=A e4+kTvhMWNWKxy0q1+4Kf0mGiwjb/+h6jLu/9ZwuGcnqlov+GRBKPzxefFdXN/KH mjwDZFiGxw13Aw35JTap/0uPpiEFYlRWYnBvT1Hew5UzzKH/u8MMzWTjgc9FV5B6 GCEB1usf8t68R178tt+VGBs6rF2qokQwTwQpxlDKWDDqE79GXKDrevSUfdrhD7sm r6ryBE1h0KdrJtIVXgSIAWwrrfp4XUc3eh3L3gi0bmTTxYYm7a/0hcJjNIbYklgQ T6d6x+UtLeOXOHWtGWtT3GvNCVrEZXug6HuVJm0Zxh24BQ6anBqyk13mtyOV+okr VuS/Shr5gPnwzOcJcyGKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701195447; x= 1701281847; bh=oxM763CPfUKKm3nWjlOEREGsogFX5ol8jOZHd4mRtRE=; b=S unPyWxOOPBUToV/xwywJOEqk/OX23QGL5CQV0u+JfN6fyJoY+fQfdNio/foYQ2K/ wlQtIPoXm+xUR0ZwI6uIk3e2UD+GxfLZO5iE8PedQrqH40QGp/WCG4YVwNqVFDqg BpOBipZcRwksO/QCQ7fXhFksJqB315b1jgEsXiXfC4Ne6IzzG8GofvL4fg9RtknA myrf9/WQjgy8In5MWkVs89NgRnbPOc+WUERmUhtPmwjXSMvV/uQVWyJPuCfY62XN s5H7Jx5MBGUJF5usJ6lhJJEXSwUTp82qeT0vW7CmRwrLKagwcIgfyjLswrMX7UyU vN5QqiKXbTJHUjRyq3O8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 13:17:26 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH v3 3/3] staging: rtl8192e: renamed variable nDataRate Date: Tue, 28 Nov 2023 13:17:27 -0500 Message-ID: <20231128181727.19504-4-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128181727.19504-1-garyrookard@fastmail.org> References: <20231128181727.19504-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Coding style issue, checkpatch Avoid CamelCase, rename it nDataRate -> data-rate. Signed-off-by: Gary Rookard --- v3: Corrects commit message style issues. v2: Style issues, redo. v3: Style issues, redo. drivers/staging/rtl8192e/rtl819x_HTProc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index 87e96f2abed0..f263f329db77 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -114,29 +114,29 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *= ieee, u8 mcs_rate) return MCS_DATA_RATE[is40MHz][isShortGI][(mcs_rate & 0x7f)]; } =20 -u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate) +u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 data_rate) { u16 CCKOFDMRate[12] =3D {0x02, 0x04, 0x0b, 0x16, 0x0c, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6c}; u8 is40MHz =3D 0; u8 isShortGI =3D 0; =20 - if (nDataRate < 12) - return CCKOFDMRate[nDataRate]; - if (nDataRate >=3D 0x10 && nDataRate <=3D 0x1f) { + if (data_rate < 12) + return CCKOFDMRate[data_rate]; + if (data_rate >=3D 0x10 && data_rate <=3D 0x1f) { is40MHz =3D 0; isShortGI =3D 0; - } else if (nDataRate >=3D 0x20 && nDataRate <=3D 0x2f) { + } else if (data_rate >=3D 0x20 && data_rate <=3D 0x2f) { is40MHz =3D 1; isShortGI =3D 0; - } else if (nDataRate >=3D 0x30 && nDataRate <=3D 0x3f) { + } else if (data_rate >=3D 0x30 && data_rate <=3D 0x3f) { is40MHz =3D 0; isShortGI =3D 1; - } else if (nDataRate >=3D 0x40 && nDataRate <=3D 0x4f) { + } else if (data_rate >=3D 0x40 && data_rate <=3D 0x4f) { is40MHz =3D 1; isShortGI =3D 1; } - return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate & 0xf]; + return MCS_DATA_RATE[is40MHz][isShortGI][data_rate & 0xf]; } =20 bool is_ht_half_nmode_aps(struct rtllib_device *ieee) --=20 2.41.0