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

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

variable name "byBBVGACurrent" 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/f0dfd4d2460f858540d465dd8bcfc920c219e94d.1696791459.git.opensource206@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 11b896e6
...@@ -2146,7 +2146,7 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data) ...@@ -2146,7 +2146,7 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data)
by_bb_rx_conf &= 0xDF; /* 1101 1111 */ by_bb_rx_conf &= 0xDF; /* 1101 1111 */
else else
by_bb_rx_conf |= 0x20; /* 0010 0000 */ by_bb_rx_conf |= 0x20; /* 0010 0000 */
priv->byBBVGACurrent = by_data; priv->bbvga_current = by_data;
bb_write_embedded(priv, 0x0A, by_bb_rx_conf); /* CR10 */ bb_write_embedded(priv, 0x0A, by_bb_rx_conf); /* CR10 */
} }
......
...@@ -87,10 +87,10 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) ...@@ -87,10 +87,10 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
/* Set VGA to max sensitivity */ /* Set VGA to max sensitivity */
if (priv->bUpdateBBVGA && if (priv->bUpdateBBVGA &&
priv->byBBVGACurrent != priv->bbvga[0]) { priv->bbvga_current != priv->bbvga[0]) {
priv->byBBVGACurrent = priv->bbvga[0]; priv->bbvga_current = priv->bbvga[0];
bb_set_vga_gain_offset(priv, priv->byBBVGACurrent); bb_set_vga_gain_offset(priv, priv->bbvga_current);
} }
/* clear NAV */ /* clear NAV */
......
...@@ -249,7 +249,7 @@ struct vnt_private { ...@@ -249,7 +249,7 @@ struct vnt_private {
bool bUpdateBBVGA; bool bUpdateBBVGA;
unsigned int uBBVGADiffCount; unsigned int uBBVGADiffCount;
unsigned char byBBVGANew; unsigned char byBBVGANew;
unsigned char byBBVGACurrent; 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];
......
...@@ -424,8 +424,8 @@ static void device_init_registers(struct vnt_private *priv) ...@@ -424,8 +424,8 @@ static void device_init_registers(struct vnt_private *priv)
bb_vt3253_init(priv); bb_vt3253_init(priv);
if (priv->bUpdateBBVGA) { if (priv->bUpdateBBVGA) {
priv->byBBVGACurrent = priv->bbvga[0]; priv->bbvga_current = priv->bbvga[0];
priv->byBBVGANew = priv->byBBVGACurrent; priv->byBBVGANew = priv->bbvga_current;
bb_set_vga_gain_offset(priv, priv->bbvga[0]); bb_set_vga_gain_offset(priv, priv->bbvga[0]);
} }
...@@ -1058,7 +1058,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1058,7 +1058,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
} }
} }
if (priv->byBBVGANew == priv->byBBVGACurrent) { if (priv->byBBVGANew == priv->bbvga_current) {
priv->uBBVGADiffCount = 1; priv->uBBVGADiffCount = 1;
return; return;
} }
...@@ -1072,7 +1072,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1072,7 +1072,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
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->byBBVGANew,
priv->byBBVGACurrent, priv->bbvga_current,
(int)priv->uBBVGADiffCount); (int)priv->uBBVGADiffCount);
} }
...@@ -1080,7 +1080,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) ...@@ -1080,7 +1080,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
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->byBBVGANew,
priv->byBBVGACurrent, priv->bbvga_current,
(int)priv->uBBVGADiffCount); (int)priv->uBBVGADiffCount);
bb_set_vga_gain_offset(priv, priv->byBBVGANew); bb_set_vga_gain_offset(priv, priv->byBBVGANew);
......
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