Commit e385ed2a authored by Pavan Bobba's avatar Pavan Bobba Committed by Greg Kroah-Hartman

staging: vt6655: Type encoding info dropped from variable name "byBBVGANew"

variable name "byBBVGANew" updated like below:

a.type encoding info dropped from name
b.camelcase name replaced by snakecase

Issue found by checkpatch
Signed-off-by: default avatarPavan Bobba <opensource206@gmail.com>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/abb105b822090a82ef081b2e28705bf14b8ce058.1696791459.git.opensource206@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5640b0c
...@@ -248,7 +248,7 @@ struct vnt_private { ...@@ -248,7 +248,7 @@ struct vnt_private {
/* For Update BaseBand VGA Gain Offset */ /* For Update BaseBand VGA Gain Offset */
bool bUpdateBBVGA; bool bUpdateBBVGA;
unsigned int uBBVGADiffCount; unsigned int uBBVGADiffCount;
unsigned char byBBVGANew; unsigned char bbvga_new;
unsigned char bbvga_current; unsigned char bbvga_current;
unsigned char bbvga[BB_VGA_LEVEL]; unsigned char bbvga[BB_VGA_LEVEL];
long dbm_threshold[BB_VGA_LEVEL]; long dbm_threshold[BB_VGA_LEVEL];
......
...@@ -425,7 +425,7 @@ static void device_init_registers(struct vnt_private *priv) ...@@ -425,7 +425,7 @@ static void device_init_registers(struct vnt_private *priv)
if (priv->bUpdateBBVGA) { if (priv->bUpdateBBVGA) {
priv->bbvga_current = priv->bbvga[0]; priv->bbvga_current = priv->bbvga[0];
priv->byBBVGANew = priv->bbvga_current; priv->bbvga_new = priv->bbvga_current;
bb_set_vga_gain_offset(priv, priv->bbvga[0]); bb_set_vga_gain_offset(priv, priv->bbvga[0]);
} }
...@@ -1053,12 +1053,12 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1053,12 +1053,12 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
for (i = 0; i < BB_VGA_LEVEL; i++) { for (i = 0; i < BB_VGA_LEVEL; i++) {
if (dbm < priv->dbm_threshold[i]) { if (dbm < priv->dbm_threshold[i]) {
priv->byBBVGANew = priv->bbvga[i]; priv->bbvga_new = priv->bbvga[i];
break; break;
} }
} }
if (priv->byBBVGANew == priv->bbvga_current) { if (priv->bbvga_new == priv->bbvga_current) {
priv->uBBVGADiffCount = 1; priv->uBBVGADiffCount = 1;
return; return;
} }
...@@ -1067,11 +1067,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1067,11 +1067,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
if (priv->uBBVGADiffCount == 1) { if (priv->uBBVGADiffCount == 1) {
/* first VGA diff gain */ /* first VGA diff gain */
bb_set_vga_gain_offset(priv, priv->byBBVGANew); bb_set_vga_gain_offset(priv, priv->bbvga_new);
dev_dbg(&priv->pcid->dev, dev_dbg(&priv->pcid->dev,
"First RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", "First RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n",
(int)dbm, priv->byBBVGANew, (int)dbm, priv->bbvga_new,
priv->bbvga_current, priv->bbvga_current,
(int)priv->uBBVGADiffCount); (int)priv->uBBVGADiffCount);
} }
...@@ -1079,11 +1079,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1079,11 +1079,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
if (priv->uBBVGADiffCount >= BB_VGA_CHANGE_THRESHOLD) { if (priv->uBBVGADiffCount >= BB_VGA_CHANGE_THRESHOLD) {
dev_dbg(&priv->pcid->dev, dev_dbg(&priv->pcid->dev,
"RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", "RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n",
(int)dbm, priv->byBBVGANew, (int)dbm, priv->bbvga_new,
priv->bbvga_current, priv->bbvga_current,
(int)priv->uBBVGADiffCount); (int)priv->uBBVGADiffCount);
bb_set_vga_gain_offset(priv, priv->byBBVGANew); bb_set_vga_gain_offset(priv, priv->bbvga_new);
} }
} }
......
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