Skip to contentSkip to conversation

staging: vt6655: fix camelcase in wCurrentRate

PATCH In review Alberto Merciai 2 participants 2 messages Nov 15, 2021 – Nov 17, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 staging: vt6655: fix camelcase in wCurrentRate

Replace camelcase word variable "wCurrentRate" into linux kernel coding style equivalent "current_rate".

---

v3:
- Remove useless links inside message body

v2:
- Add version changelog as suggested by Greg KH

v1:
- Add mail message body as suggested by Greg KH

drivers/staging/vt6655/device.h | 2 +-

 drivers/staging/vt6655/device_main.c |  12 +--
 drivers/staging/vt6655/rxtx.c        | 134 +++++++++++++--------------
 3 files changed, 74 insertions(+), 74 deletions(-)
drivers/staging/vt6655/device.h +1 -1
index 29f354ced563..f5dee7ad99cd 100644
@@ -208,7 +208,7 @@ struct vnt_private {
 	unsigned char byPreambleType;
 	unsigned char byShortPreamble;
 
-	unsigned short wCurrentRate;
+	unsigned short current_rate;
 	unsigned char byShortRetryLimit;
 	unsigned char byLongRetryLimit;
 	enum nl80211_iftype op_mode;
drivers/staging/vt6655/device_main.c +6 -6
index 41cbec4134b0..2c5398b128df 100644
@@ -213,7 +213,7 @@ static void device_init_registers(struct vnt_private *priv)
 
 	priv->bNonERPPresent = false;
 	priv->bBarkerPreambleMd = false;
-	priv->wCurrentRate = RATE_1M;
+	priv->current_rate = RATE_1M;
 	priv->byTopOFDMBasicRate = RATE_24M;
 	priv->byTopCCKBasicRate = RATE_1M;
 
@@ -369,7 +369,7 @@ static void device_init_registers(struct vnt_private *priv)
 
 	/* Set BB and packet type at the same time. */
 	/* Set Short Slot Time, xIFS, and RSPINF. */
-	priv->wCurrentRate = RATE_54M;
+	priv->current_rate = RATE_54M;
 
 	priv->bRadioOff = false;
 
@@ -1382,11 +1382,11 @@ static int vnt_config(struct ieee80211_hw *hw, u32 changed)
 
 	if (changed & IEEE80211_CONF_CHANGE_POWER) {
 		if (priv->byBBType == BB_TYPE_11B)
-			priv->wCurrentRate = RATE_1M;
+			priv->current_rate = RATE_1M;
 		else
-			priv->wCurrentRate = RATE_54M;
+			priv->current_rate = RATE_54M;
 
-		RFbSetPower(priv, priv->wCurrentRate,
+		RFbSetPower(priv, priv->current_rate,
 			    conf->chandef.chan->hw_value);
 	}
 
@@ -1448,7 +1448,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
 	}
 
 	if (changed & BSS_CHANGED_TXPOWER)
-		RFbSetPower(priv, priv->wCurrentRate,
+		RFbSetPower(priv, priv->current_rate,
 			    conf->chandef.chan->hw_value);
 
 	if (changed & BSS_CHANGED_BEACON_ENABLED) {
drivers/staging/vt6655/rxtx.c +67 -67

406 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · Alberto Merciai

Replace camelcase word variable "wCurrentRate" into linux kernel coding style equivalent "current_rate".

Does not apply to my tree. Please rebase against the staging-next branch and resend.

thanks,

greg k-h