staging: vt6655: refactor camelcase byMaxPwrLevel to max_pwr_level
PATCH 1/1 staging: vt6655: refactor camelcase byMaxPwrLevel to max_pwr_level
Replace hungarian notated variable "byMaxPwrLevel" with "max_pwr_level" compliant with linux kernel coding style.
Signed-off-by Alberto Merciai <[email protected]>
--- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/rf.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/vt6655/device.h +1 -1
@@ -159,7 +159,7 @@ struct vnt_private {unsigned char byLocalID;unsigned char byRFType; -unsigned char byMaxPwrLevel; +unsigned char max_pwr_level;unsigned char byZoneType;bool bZoneRegExist;unsigned char byOriginalZonetype;
drivers/staging/vt6655/rf.c +5 -5
@@ -611,11 +611,11 @@ bool RFbInit(struct vnt_private *priv)switch (priv->byRFType) {case RF_AIROHA :case RF_AL2230S : - priv->byMaxPwrLevel =AL2230_PWR_IDX_LEN ; + priv->max_pwr_level =AL2230_PWR_IDX_LEN ; ret =RFbAL2230Init (priv);break ;case RF_AIROHA7230 : - priv->byMaxPwrLevel =AL7230_PWR_IDX_LEN ; + priv->max_pwr_level =AL7230_PWR_IDX_LEN ; ret =s_bAL7230Init (priv);break ;case RF_NOTHING :
@@ -788,8 +788,8 @@ bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH)else byDec = byPwr +10 ; -if (byDec >= priv->byMaxPwrLevel) - byDec = priv->byMaxPwrLevel -1 ; +if (byDec >= priv->max_pwr_level) + byDec = priv->max_pwr_level -1 ; byPwr = byDec;break ;
@@ -831,7 +831,7 @@ bool RFbRawSetPower(struct vnt_private *priv, unsigned char byPwr,bool ret = true;unsigned long dwMax7230Pwr =0 ; -if (byPwr >= priv->byMaxPwrLevel) +if (byPwr >= priv->max_pwr_level)return false;switch (priv->byRFType) {
Signature · 1 line
2.25.1