mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 06:50:43 -04:00
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: Gilbert Adikankwu <gilbertadikankwu@gmail.com> Link: https://lore.kernel.org/r/cd4c073d0e67e2ce6ed9f38a7add9bbd2fe760ce.1697495598.git.gilbertadikankwu@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e9a2aba071
commit
0c93013ca9
@@ -82,7 +82,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
|
||||
{
|
||||
bool ret = true;
|
||||
|
||||
if (priv->byCurrentCh == ch->hw_value)
|
||||
if (priv->current_ch == ch->hw_value)
|
||||
return ret;
|
||||
|
||||
/* Set VGA to max sensitivity */
|
||||
@@ -100,7 +100,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
|
||||
* it is for better TX throughput
|
||||
*/
|
||||
|
||||
priv->byCurrentCh = ch->hw_value;
|
||||
priv->current_ch = ch->hw_value;
|
||||
ret &= RFbSelectChannel(priv, priv->rf_type,
|
||||
ch->hw_value);
|
||||
|
||||
@@ -117,9 +117,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
|
||||
|
||||
/* set HW default power register */
|
||||
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);
|
||||
RFbSetPower(priv, RATE_6M, priv->byCurrentCh);
|
||||
RFbSetPower(priv, RATE_6M, priv->current_ch);
|
||||
iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM);
|
||||
VT6655_MAC_SELECT_PAGE0(priv->port_offset);
|
||||
|
||||
@@ -127,9 +127,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
|
||||
}
|
||||
|
||||
if (priv->byBBType == BB_TYPE_11B)
|
||||
RFbSetPower(priv, RATE_1M, priv->byCurrentCh);
|
||||
RFbSetPower(priv, RATE_1M, priv->current_ch);
|
||||
else
|
||||
RFbSetPower(priv, RATE_6M, priv->byCurrentCh);
|
||||
RFbSetPower(priv, RATE_6M, priv->current_ch);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ struct vnt_private {
|
||||
bool bIsBeaconBufReadySet;
|
||||
unsigned int cbBeaconBufReadySetCnt;
|
||||
bool bFixRate;
|
||||
u16 byCurrentCh;
|
||||
u16 current_ch;
|
||||
|
||||
bool bAES;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user