From nobody Wed Dec 17 09:18:03 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 2C8DFC4167B for ; Tue, 28 Nov 2023 14:31:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344687AbjK1Oaz (ORCPT ); Tue, 28 Nov 2023 09:30:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346199AbjK1OUW (ORCPT ); Tue, 28 Nov 2023 09:20:22 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4621D5B for ; Tue, 28 Nov 2023 06:20:25 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 284DA5C01DE; Tue, 28 Nov 2023 09:20:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 28 Nov 2023 09:20: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=1701181225; x= 1701267625; bh=eCmsTIw1FtK/6Yvz/aSaClPBGjFp5JHXcHbDNG5elnw=; b=U fHJ/n56lVrVYi4Hc61cW0Mb0AZEzPmgEexHv45hWgaXNWL8gmy/WshuBIrw8KU53 YbC5jkKBEv0i/0DOourjl1n8LvfWwSVHNZvGAWD1ulrxUi9rRiaa+s1CJGJq90gE h+cCv50FhU5iUhzeGdk6fUWc+w4xPezC1hl3Gpgqc83nGa64blgfYVS+hMrCIwrO z7xtPHPRSkyM64ADzW3B3lRSm+ops+Y9kGOq1hgMOQsE0zw8ZCh5meQYR5staBrn paSIr3t7H0rQfXbAzFjzRvj7GbR+V51H57Qop97bsm8G23GRelkUhmSsmtL3QXla Is2MeajPVaK6gWbtbHAcw== 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=1701181225; x= 1701267625; bh=eCmsTIw1FtK/6Yvz/aSaClPBGjFp5JHXcHbDNG5elnw=; b=3 h0vIrXMVDjY+5NpjSNv63V9/mOdDYuY+4h3AKdsFyhyGva+JoZcIXGXTftNA6sUQ iO6KmG7WItr/EoW30HbV4Y7PkUOmafAZIpX/u4f2cCX7A0VJfNaCXMv+TP3RvAtj uEK89AhUDfuM2uIcNS0hT8nLDxsGmMLpjm8kfHWzyfCzn+KlJJvFqZgFMxlUJjGZ LWzFUopb9JqMGF6rnPjIytKvyl2YPvcj+Er++Fda+swdsEOri0XY3zLF6o6nTfdl IerQ0OZx8JP5JpZ7uRPvI/ho6edSHY9SO7s0XhtIm1foG64Gm2Mh+2ch5d6EqNdc xP+ju0n0rTXinoBBlztSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefirghrhicutfhoohhkrghrugcuoehgrghrhihrohhokhgr rhgusehfrghsthhmrghilhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeuvdffueduke egieeuffejhefgkeetfeehueelfeduuefgveellefhfefgjedvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghgrrhihrhhoohhkrghrugesfh grshhtmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 09:20:24 -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 v2 1/3] staging: rtl8192e: renamed variable nMcsRate Date: Tue, 28 Nov 2023 09:20:25 -0500 Message-ID: <20231128142027.15617-2-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128142027.15617-1-garyrookard@fastmail.org> References: <20231128142027.15617-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" v2: Renamed from CamelCase to Snake case the variable nMcsRate, and additionally removed the Hungarian notation of (n) that [v1] did not. nMcsRate -> mcs_rate Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- v2: Removes Hungarian notation. v1: Renames from CamelCase only, Hungarian notation unremoved. 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:18:03 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 A5DA8C4167B for ; Tue, 28 Nov 2023 14:31:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346222AbjK1Oax (ORCPT ); Tue, 28 Nov 2023 09:30:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346200AbjK1OUW (ORCPT ); Tue, 28 Nov 2023 09:20:22 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED78D64 for ; Tue, 28 Nov 2023 06:20:28 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C77045C01DC; Tue, 28 Nov 2023 09:20:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 28 Nov 2023 09:20: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=1701181227; x= 1701267627; bh=wUnayjmA/sOeM/Grko2VTpHkJJo8kIBAYmK/s8vG5Bg=; b=i og2GnV0HcoL6NN/dHW+eAPPzf5usP8KI5ADbXGe9IVKJpf0VuzPTbz22Gek+Of/O YtUvRwCydBYpQvFL6u5X2sRbMFLATwbUst3EEMoY/+aQWP0AvtlfJB5U/EPvfUFV HUi9f7Onm+OQncYdbqfjbJTM2yhTvZBUYd2Zga2RdtUgenlld+jjFbJbgMUA9UIy rPC9TUSit05WiMQo54CsF2piSdkLPlkp1Mg+rsCCadw1kyaiTEbSfniewC9a3HFo QY0nvt6xDI0jo50fORSxevD5XUv3oxWxjXCTOartiYeKUqIaT+eSszMWBJlkneKP TLj23ZFNuRlkWBMufrQ5Q== 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=1701181227; x= 1701267627; bh=wUnayjmA/sOeM/Grko2VTpHkJJo8kIBAYmK/s8vG5Bg=; b=D +mHufesiXQHMGOejo7gegEmjr1/OfR5CU1QVMJJ6WgvQID5D6vqMP53GacWNabRK Bkq/zEzgv4ZqxFbeehUfMbyuEMKM2s1DWX89d1alHgrs/9B0FkAKE3XOdkj/RlKu gnhWiUyexP7jdYGjGP4WERUS+Et/nUTfg5Il6fjwOZcPDnWMChjODUR4ibRryDEB AAOkXMNmUaAD++CYZZX5u3CTGQDbdP2qdwb92NqdSQTNqahysHl3NX3N+N7eqzSn 0A7NOBSUZYnOtiXz08BGDGaPU25L0Vyj87ovFG7mKmVh1kmHe7MBgHlEPnPbFiN1 pMOIX4YOJ/6g8pxX3b+bA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefirghrhicutfhoohhkrghrugcuoehgrghrhihrohhokhgr rhgusehfrghsthhmrghilhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeuvdffueduke egieeuffejhefgkeetfeehueelfeduuefgveellefhfefgjedvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghgrrhihrhhoohhkrghrugesfh grshhtmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 09:20:27 -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 v2 2/3] staging: rtl8192e: renamed variable bCurBW40MHz Date: Tue, 28 Nov 2023 09:20:26 -0500 Message-ID: <20231128142027.15617-3-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128142027.15617-1-garyrookard@fastmail.org> References: <20231128142027.15617-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" v2: Renamed from CamelCase to Snake case the variable bCurBW40MHz, and addionally removed the Hungarian notation (n) that [v1] did not. bCurBW40MHz -> cur_bw_40mhz Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- v2: Removes Hungarian notation. v1: Renamed from CamelCase only, Hungarian notation unremoved. 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:18:03 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 62BDBC4167B for ; Tue, 28 Nov 2023 14:31:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346247AbjK1Oa6 (ORCPT ); Tue, 28 Nov 2023 09:30:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346212AbjK1OUY (ORCPT ); Tue, 28 Nov 2023 09:20:24 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2237FE4 for ; Tue, 28 Nov 2023 06:20:31 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8C5AA5C01D6; Tue, 28 Nov 2023 09:20:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 28 Nov 2023 09:20:30 -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=1701181230; x= 1701267630; bh=SnX0IS/Z0iVFVy9GbQpy1iXgZuerSwSu+PLsNNHCF0s=; b=O sTBx/iURd3X69ZOb/OUYz50BYeE9RA9otJqklPJ7lDZ+A+6LNgHTGFzmzeV6ssEK SBf/E751hE8jxWGDA5ZxhWpMW23a8EQNT8iJtEgqt/dEA821C2iloctUXm121yeS 2UR4dYhNE5rRjT8rjCeNhVHbbOHezYkwe8sWdpRUX8PMf28D3WF1Yeo1cX5LM6VH G2HrD6gawc+p6jD0+Dqms+n1yrAoQHcXDDeqtmLPFcB1v7yGhNP6dV089YL67JMZ KUxU8R8oMKIcVbENcau68mShjsR4Gx9i36BzMrb//ZYIwDJQzsvA97znT854rF6t RmXe07atMFrlN4/6jnLPA== 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=1701181230; x= 1701267630; bh=SnX0IS/Z0iVFVy9GbQpy1iXgZuerSwSu+PLsNNHCF0s=; b=T JBUZfPYQDotsumwDR9tYh442AkYZVqJYJYTxIXai6jEy5fdSTGAMZgU0R93xkFTy nSUH4N+97/BD3jGH5VoMKhxsLa9AYxTdPQqoA/rQyEolYjEcXwoq47VyvfIe3Jhm xZ9CMWbyM5TwEGo+KLmlBJmWo9wjLcTVfsKnwkwsW/Z533vDtp3p2wZUDZrciPjE 1RhH8NGHx+06i+SDiW9qf7lLVW0HdKzguvkiRf2ZWUoe6je3KTQo+vpL2clgJ+Cl 1xBp+sjsS2nKIERjU4pJsB8BRenFw0I4/KDJL/N/0mPxpF64Qj3EAxqvKRK/yEey HNNg3n68FedQFN/H9nPeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeifedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefirghrhicutfhoohhkrghrugcuoehgrghrhihrohhokhgr rhgusehfrghsthhmrghilhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeuvdffueduke egieeuffejhefgkeetfeehueelfeduuefgveellefhfefgjedvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghgrrhihrhhoohhkrghrugesfh grshhtmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Nov 2023 09:20:29 -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 v2 3/3] staging: rtl8192e: renamed variable nDataRate Date: Tue, 28 Nov 2023 09:20:27 -0500 Message-ID: <20231128142027.15617-4-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128142027.15617-1-garyrookard@fastmail.org> References: <20231128142027.15617-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" v2: Renamed from CamelCase to Snake case the variable nDataRate, and additionally removed the Hungarian notation (n) that [v1] did not. nDataRate -> data_rate Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- v2: Removes Hungarian notation. v1: Renames from CamelCase only, Hungarian notation unremoved. 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