Commit 0c93013c authored by Gilbert Adikankwu's avatar Gilbert Adikankwu Committed by Greg Kroah-Hartman

staging: vt6655: Rename variable byCurrentCh

Remove byte Type encoding "by" from variable name and replace camelcase
with snakecase.

Mute checkpatch.pl error:

CHECK: Avoid CamelCase: <byCurrentCh>
Signed-off-by: default avatarGilbert Adikankwu <gilbertadikankwu@gmail.com>
Link: https://lore.kernel.org/r/cd4c073d0e67e2ce6ed9f38a7add9bbd2fe760ce.1697495598.git.gilbertadikankwu@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9a2aba0
...@@ -82,7 +82,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ...@@ -82,7 +82,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
{ {
bool ret = true; bool ret = true;
if (priv->byCurrentCh == ch->hw_value) if (priv->current_ch == ch->hw_value)
return ret; return ret;
/* Set VGA to max sensitivity */ /* Set VGA to max sensitivity */
...@@ -100,7 +100,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ...@@ -100,7 +100,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
* it is for better TX throughput * it is for better TX throughput
*/ */
priv->byCurrentCh = ch->hw_value; priv->current_ch = ch->hw_value;
ret &= RFbSelectChannel(priv, priv->rf_type, ret &= RFbSelectChannel(priv, priv->rf_type,
ch->hw_value); ch->hw_value);
...@@ -117,9 +117,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ...@@ -117,9 +117,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
/* set HW default power register */ /* set HW default power register */
VT6655_MAC_SELECT_PAGE1(priv->port_offset); VT6655_MAC_SELECT_PAGE1(priv->port_offset);
RFbSetPower(priv, RATE_1M, priv->byCurrentCh); RFbSetPower(priv, RATE_1M, priv->current_ch);
iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWRCCK); iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWRCCK);
RFbSetPower(priv, RATE_6M, priv->byCurrentCh); RFbSetPower(priv, RATE_6M, priv->current_ch);
iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM); iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM);
VT6655_MAC_SELECT_PAGE0(priv->port_offset); VT6655_MAC_SELECT_PAGE0(priv->port_offset);
...@@ -127,9 +127,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ...@@ -127,9 +127,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
} }
if (priv->byBBType == BB_TYPE_11B) if (priv->byBBType == BB_TYPE_11B)
RFbSetPower(priv, RATE_1M, priv->byCurrentCh); RFbSetPower(priv, RATE_1M, priv->current_ch);
else else
RFbSetPower(priv, RATE_6M, priv->byCurrentCh); RFbSetPower(priv, RATE_6M, priv->current_ch);
return ret; return ret;
} }
...@@ -239,7 +239,7 @@ struct vnt_private { ...@@ -239,7 +239,7 @@ struct vnt_private {
bool bIsBeaconBufReadySet; bool bIsBeaconBufReadySet;
unsigned int cbBeaconBufReadySetCnt; unsigned int cbBeaconBufReadySetCnt;
bool bFixRate; bool bFixRate;
u16 byCurrentCh; u16 current_ch;
bool bAES; bool bAES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment