mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tree Davies <tdavies@darkphysics.net>
To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Tree Davies <tdavies@darkphysics.net>
Subject: [PATCH v2 09/24] Staging: rtl8192e: Rename variable bforced_tx20Mhz
Date: Tue, 11 Jun 2024 20:22:15 -0700	[thread overview]
Message-ID: <20240612032230.9738-10-tdavies@darkphysics.net> (raw)
In-Reply-To: <20240612032230.9738-1-tdavies@darkphysics.net>

Rename variable bforced_tx20Mhz to forced_tx_20MHz
to remove hungarian notation and make it snake_case.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
v2: Change bforced_tx20Mhz to forced_tx_20MHz, and update commit message
 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 8 ++++----
 drivers/staging/rtl8192e/rtllib.h          | 2 +-
 drivers/staging/rtl8192e/rtllib_tx.c       | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
index 5392d2daf870..f546e6d368b4 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -377,7 +377,7 @@ static void _rtl92e_dm_init_bandwidth_autoswitch(struct net_device *dev)
 
 	priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH;
 	priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW;
-	priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false;
+	priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false;
 	priv->rtllib->bandwidth_auto_switch.bautoswitch_enable = false;
 }
 
@@ -388,14 +388,14 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev)
 	if (priv->current_chnl_bw == HT_CHANNEL_WIDTH_20 ||
 	    !priv->rtllib->bandwidth_auto_switch.bautoswitch_enable)
 		return;
-	if (!priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz) {
+	if (!priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz) {
 		if (priv->undecorated_smoothed_pwdb <=
 		    priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
-			priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = true;
+			priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = true;
 	} else {
 		if (priv->undecorated_smoothed_pwdb >=
 		    priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz)
-			priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false;
+			priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false;
 	}
 }
 
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index bd18d866ce22..ab52fd66c705 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -1018,7 +1018,7 @@ struct tx_pending {
 struct bandwidth_autoswitch {
 	long threshold_20Mhzto40Mhz;
 	long	threshold_40Mhzto20Mhz;
-	bool bforced_tx20Mhz;
+	bool forced_tx_20MHz;
 	bool bautoswitch_enable;
 };
 
diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c
index d376c35a5ad7..ba76d2fcc750 100644
--- a/drivers/staging/rtl8192e/rtllib_tx.c
+++ b/drivers/staging/rtl8192e/rtllib_tx.c
@@ -362,7 +362,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
 	if ((tcb_desc->data_rate & 0x80) == 0)
 		return;
 	if (ht_info->cur_bw_40mhz && ht_info->cur_tx_bw40mhz &&
-	    !ieee->bandwidth_auto_switch.bforced_tx20Mhz)
+	    !ieee->bandwidth_auto_switch.forced_tx_20MHz)
 		tcb_desc->bPacketBW = true;
 }
 
-- 
2.30.2


  parent reply	other threads:[~2024-06-12  3:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12  3:22 [PATCH v2 00/24] Staging: rtl8192e: Maintenance renames and cleanup Tree Davies
2024-06-12  3:22 ` [PATCH v2 01/24] Staging: rtl8192e: Rename variable bHwSec Tree Davies
2024-06-12  3:22 ` [PATCH v2 02/24] Staging: rtl8192e: Rename variable bIsMulticast Tree Davies
2024-06-12  3:22 ` [PATCH v2 03/24] Staging: rtl8192e: Rename variable HTCurrentOperaRate Tree Davies
2024-06-12  3:22 ` [PATCH v2 04/24] Staging: rtl8192e: Rename variable HTOpMode Tree Davies
2024-06-12  3:22 ` [PATCH v2 05/24] Staging: rtl8192e: Rename variable bRTSEnable Tree Davies
2024-06-12  3:22 ` [PATCH v2 06/24] Staging: rtl8192e: Rename variable bRTSBW Tree Davies
2024-06-12  3:22 ` [PATCH v2 07/24] Staging: rtl8192e: Rename variable bCTSEnable Tree Davies
2024-06-12  3:22 ` [PATCH v2 08/24] Staging: rtl8192e: Rename variable bRTSUseShortGI Tree Davies
2024-06-12  3:22 ` Tree Davies [this message]
2024-06-12  3:22 ` [PATCH v2 10/24] Staging: rtl8192e: Rename variable bPacketBW Tree Davies
2024-06-12  3:22 ` [PATCH v2 11/24] Staging: rtl8192e: Rename variable bBroadcast Tree Davies
2024-06-12  3:22 ` [PATCH v2 12/24] Staging: rtl8192e: Rename variable CntAfterLink Tree Davies
2024-06-12  3:22 ` [PATCH v2 13/24] Staging: rtl8192e: Rename variable bUseShortGI Tree Davies
2024-06-12  3:22 ` [PATCH v2 14/24] Staging: rtl8192e: Rename function TsStartAddBaProcess() Tree Davies
2024-06-12  3:22 ` [PATCH v2 15/24] Staging: rtl8192e: Fix alignment to match open parenthesis Tree Davies
2024-06-12  3:22 ` [PATCH v2 16/24] Staging: rtl8192e: Rename function rtllib_query_BandwidthMode Tree Davies
2024-06-12  3:22 ` [PATCH v2 17/24] Staging: rtl8192e: Rename function rtllib_query_ShortPreambleMode Tree Davies
2024-06-12  3:22 ` [PATCH v2 18/24] Staging: rtl8192e: Rename function rtllib_query_HTCapShortGI Tree Davies
2024-06-12  3:22 ` [PATCH v2 19/24] Staging: rtl8192e: Rename variable bUseShortPreamble Tree Davies
2024-06-12  3:22 ` [PATCH v2 20/24] Staging: rtl8192e: Rename variable bRTSSTBC Tree Davies
2024-06-12  3:22 ` [PATCH v2 21/24] Staging: rtl8192e: Remove parameter bIsAmsdu from rtllib_classify() Tree Davies
2024-06-12  3:22 ` [PATCH v2 22/24] Staging: rtl8192e: Remove variable IsAmsdu from rtllib_xmit_inter() Tree Davies
2024-06-12  3:22 ` [PATCH v2 23/24] Staging: rtl8192e: Fix alignment to match open parenthesis in rtllib_tx.c Tree Davies
2024-06-12  3:22 ` [PATCH v2 24/24] Staging: rtl8192e: Fix alignment to match open parenthesis in rtllib_rx.c Tree Davies
2024-06-12  7:02 ` [PATCH v2 00/24] Staging: rtl8192e: Maintenance renames and cleanup Dan Carpenter
2024-06-13  4:13 ` Philipp Hortmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240612032230.9738-10-tdavies@darkphysics.net \
    --to=tdavies@darkphysics.net \
    --cc=anjan@momi.ca \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=philipp.g.hortmann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®