staging: vt6655: fix camelcase in wCurrentRate
PATCH v3 1/1 staging: vt6655: fix camelcase in wCurrentRate
Replace camelcase word variable "wCurrentRate" into linux kernel coding style equivalent "current_rate".
References:
https://www.kernel.org/doc/html/latest/process/coding-style.html
https://www.cse.iitk.ac.in/users/dsrkg/cs245/html/Guide.htm
---
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
@@ -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
@@ -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
Greg KH
maintainerQuoted 5 lines · Alberto Merciai
Replace camelcase word variable "wCurrentRate" into linux kernel coding style equivalent "
current_rate".References:
https://www.kernel.org/doc/html/latest/process/coding-style.html
We all know the kernel coding style, no need to have a link to it in the changelog text, right?
Why is this here? That's a random college course web site.
And random links in changelog text do not age well, include the full text of what matters in the changelog text itself, it should be self-contained where ever possible as these live much longer than random web site links will.
thanks,
greg k-h