staging: vt6655: fix camelcase in bRadioOff
authorTommaso Merciai <tomm.merciai@gmail.com>
Sat, 13 Nov 2021 10:21:20 +0000 (11:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Nov 2021 09:02:04 +0000 (10:02 +0100)
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>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/device.h
drivers/staging/vt6655/device_main.c

index fac2d0566d2eba064398e4e51ff02872ae9d0078..ee2d145778ed5057318f69d8ce3b54ba31897101 100644 (file)
@@ -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 */
index 4706bde1ec1d11137ce071c2a4c0a07fac6e3ee5..3768791d9744d8123e80c2bfd5671d014a30f90c 100644 (file)
@@ -221,7 +221,7 @@ struct vnt_private {
        bool bBarkerPreambleMd;
 
        bool bRadioControlOff;
-       bool bRadioOff;
+       bool radio_off;
        bool bEnablePSMode;
        unsigned short wListenInterval;
        bool bPWBitOn;
index 212d2a287b2c1a26257cf368d2f25332e9ef72b1..e74caf22d75aa91255e2fbd67511cd0849fc86de 100644 (file)
@@ -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);