staging: vt6655: Rename variable bUpdateBBVGA
Remove bool Type encoding "b" from variable name and replace camelcase with snakecase. Mute checkpatch.pl error: CHECK: Avoid CamelCase: <bUpdateBBVGA> Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com> Link: https://lore.kernel.org/r/9bd935c464671db2654c654964812cc48f4603d3.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
260e7623d9
commit
e9a2aba071
@@ -2087,7 +2087,7 @@ bool bb_vt3253_init(struct vnt_private *priv)
|
|||||||
/* {{ RobertYu: 20050104 */
|
/* {{ RobertYu: 20050104 */
|
||||||
} else {
|
} else {
|
||||||
/* No VGA Table now */
|
/* No VGA Table now */
|
||||||
priv->bUpdateBBVGA = false;
|
priv->update_bbvga = false;
|
||||||
priv->bbvga[0] = 0x1C;
|
priv->bbvga[0] = 0x1C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Set VGA to max sensitivity */
|
/* Set VGA to max sensitivity */
|
||||||
if (priv->bUpdateBBVGA &&
|
if (priv->update_bbvga &&
|
||||||
priv->bbvga_current != priv->bbvga[0]) {
|
priv->bbvga_current != priv->bbvga[0]) {
|
||||||
priv->bbvga_current = priv->bbvga[0];
|
priv->bbvga_current = priv->bbvga[0];
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ struct vnt_private {
|
|||||||
unsigned char byAutoFBCtrl;
|
unsigned char byAutoFBCtrl;
|
||||||
|
|
||||||
/* For Update BaseBand VGA Gain Offset */
|
/* For Update BaseBand VGA Gain Offset */
|
||||||
bool bUpdateBBVGA;
|
bool update_bbvga;
|
||||||
unsigned int uBBVGADiffCount;
|
unsigned int uBBVGADiffCount;
|
||||||
unsigned char bbvga_new;
|
unsigned char bbvga_new;
|
||||||
unsigned char bbvga_current;
|
unsigned char bbvga_current;
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ device_set_options(struct vnt_private *priv)
|
|||||||
priv->byBBType = priv->opts.bbp_type;
|
priv->byBBType = priv->opts.bbp_type;
|
||||||
priv->byPacketType = priv->byBBType;
|
priv->byPacketType = priv->byBBType;
|
||||||
priv->byAutoFBCtrl = AUTO_FB_0;
|
priv->byAutoFBCtrl = AUTO_FB_0;
|
||||||
priv->bUpdateBBVGA = true;
|
priv->update_bbvga = true;
|
||||||
priv->preamble_type = 0;
|
priv->preamble_type = 0;
|
||||||
|
|
||||||
pr_debug(" byShortRetryLimit= %d\n", (int)priv->byShortRetryLimit);
|
pr_debug(" byShortRetryLimit= %d\n", (int)priv->byShortRetryLimit);
|
||||||
@@ -423,7 +423,7 @@ static void device_init_registers(struct vnt_private *priv)
|
|||||||
/* initialize BBP registers */
|
/* initialize BBP registers */
|
||||||
bb_vt3253_init(priv);
|
bb_vt3253_init(priv);
|
||||||
|
|
||||||
if (priv->bUpdateBBVGA) {
|
if (priv->update_bbvga) {
|
||||||
priv->bbvga_current = priv->bbvga[0];
|
priv->bbvga_current = priv->bbvga[0];
|
||||||
priv->bbvga_new = 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]);
|
||||||
@@ -1040,7 +1040,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
|
|||||||
long dbm;
|
long dbm;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!priv->bUpdateBBVGA)
|
if (!priv->update_bbvga)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)
|
if (priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)
|
||||||
|
|||||||
Reference in New Issue
Block a user