mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
staging: vt6655: Rename variable byCurPwr
Remove byte Type encoding "by" from variable name and replace camelcase with snakecase Mute checkpatch.pl error: CHECK: Avoid CamelCase: <byCurPwr> Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com> Link: https://lore.kernel.org/r/4c24962988ac990ae21c95e4a1754cfabfd2db8d.1697495598.git.gilbertadikankwu@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c93013ca9
commit
3095350411
@ -118,9 +118,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->current_ch);
|
||||
iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWRCCK);
|
||||
iowrite8(priv->cur_pwr, priv->port_offset + MAC_REG_PWRCCK);
|
||||
RFbSetPower(priv, RATE_6M, priv->current_ch);
|
||||
iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM);
|
||||
iowrite8(priv->cur_pwr, priv->port_offset + MAC_REG_PWROFDM);
|
||||
VT6655_MAC_SELECT_PAGE0(priv->port_offset);
|
||||
|
||||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
@ -264,7 +264,7 @@ struct vnt_private {
|
||||
/* For RF Power table */
|
||||
unsigned char byCCKPwr;
|
||||
unsigned char byOFDMPwrG;
|
||||
unsigned char byCurPwr;
|
||||
unsigned char cur_pwr;
|
||||
char byCurPwrdBm;
|
||||
unsigned char abyCCKPwrTbl[CB_MAX_CHANNEL_24G + 1];
|
||||
unsigned char abyOFDMPwrTbl[CB_MAX_CHANNEL + 1];
|
||||
|
@ -359,7 +359,7 @@ static void device_init_registers(struct vnt_private *priv)
|
||||
RFbInit(priv);
|
||||
|
||||
/* Get Desire Power Value */
|
||||
priv->byCurPwr = 0xFF;
|
||||
priv->cur_pwr = 0xFF;
|
||||
priv->byCCKPwr = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_PWR_CCK);
|
||||
priv->byOFDMPwrG = SROMbyReadEmbedded(priv->port_offset,
|
||||
EEP_OFS_PWR_OFDMG);
|
||||
|
@ -438,12 +438,12 @@ bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH)
|
||||
break;
|
||||
}
|
||||
|
||||
if (priv->byCurPwr == byPwr)
|
||||
if (priv->cur_pwr == byPwr)
|
||||
return true;
|
||||
|
||||
ret = RFbRawSetPower(priv, byPwr, rate);
|
||||
if (ret)
|
||||
priv->byCurPwr = byPwr;
|
||||
priv->cur_pwr = byPwr;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user