diff options
author | Tommaso Merciai <tomm.merciai@gmail.com> | 2021-11-13 11:21:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-15 10:02:04 +0100 |
commit | fca00dc456bd9ee1fdc4b507f8a8d953cc479966 (patch) | |
tree | 5046849cdfca3c6847f982669a6329c145086dcc | |
parent | 74b1dc3630636ef87b9d74b913e686769a8643cd (diff) | |
download | linux-stable-fca00dc456bd9ee1fdc4b507f8a8d953cc479966.tar.gz linux-stable-fca00dc456bd9ee1fdc4b507f8a8d953cc479966.tar.bz2 linux-stable-fca00dc456bd9ee1fdc4b507f8a8d953cc479966.zip |
staging: vt6655: fix camelcase in bRadioOff
Replace camel case variable bRadioOff with snake case
variable radio_off.
Drop Hungarian notation prefix in `bRadioOff` variable.
Change it to use snake case.
Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
Link: https://lore.kernel.org/r/20211113102126.82904-1-tomm.merciai@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vt6655/card.c | 4 | ||||
-rw-r--r-- | drivers/staging/vt6655/device.h | 2 | ||||
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index fac2d0566d2e..ee2d145778ed 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -404,7 +404,7 @@ bool CARDbSetBeaconPeriod(struct vnt_private *priv, */ void CARDbRadioPowerOff(struct vnt_private *priv) { - if (priv->bRadioOff) + if (priv->radio_off) return; switch (priv->byRFType) { @@ -429,7 +429,7 @@ void CARDbRadioPowerOff(struct vnt_private *priv) bb_set_deep_sleep(priv, priv->local_id); - priv->bRadioOff = true; + priv->radio_off = true; pr_debug("chester power off\n"); MACvRegBitsOn(priv->port_offset, MAC_REG_GPIOCTL0, LED_ACTSET); /* LED issue */ diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 4706bde1ec1d..3768791d9744 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -221,7 +221,7 @@ struct vnt_private { bool bBarkerPreambleMd; bool bRadioControlOff; - bool bRadioOff; + bool radio_off; bool bEnablePSMode; unsigned short wListenInterval; bool bPWBitOn; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 212d2a287b2c..e74caf22d75a 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -369,7 +369,7 @@ static void device_init_registers(struct vnt_private *priv) /* Set Short Slot Time, xIFS, and RSPINF. */ priv->wCurrentRate = RATE_54M; - priv->bRadioOff = false; + priv->radio_off = false; priv->byRadioCtl = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_RADIOCTL); |