staging: vt6655: Rename variable byCurrentCh
authorGilbert Adikankwu <gilbertadikankwu@gmail.com>
Mon, 16 Oct 2023 22:58:55 +0000 (23:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2023 13:40:16 +0000 (15:40 +0200)
Remove byte Type encoding "by" from variable name and replace camelcase
with snakecase.

Mute checkpatch.pl error:

CHECK: Avoid CamelCase: <byCurrentCh>

Signed-off-by: Gilbert Adikankwu <gilbertadikankwu@gmail.com>
Link: https://lore.kernel.org/r/cd4c073d0e67e2ce6ed9f38a7add9bbd2fe760ce.1697495598.git.gilbertadikankwu@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/channel.c
drivers/staging/vt6655/device.h

index c11bc2dbc356a100190d8a3f3077b9a99b859ab4..7b864136a0a8b0dd09f7a86fce3123782fb73e06 100644 (file)
@@ -82,7 +82,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
 {
        bool ret = true;
 
-       if (priv->byCurrentCh == ch->hw_value)
+       if (priv->current_ch == ch->hw_value)
                return ret;
 
        /* Set VGA to max sensitivity */
@@ -100,7 +100,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
         * it is for better TX throughput
         */
 
-       priv->byCurrentCh = ch->hw_value;
+       priv->current_ch = ch->hw_value;
        ret &= RFbSelectChannel(priv, priv->rf_type,
                                ch->hw_value);
 
@@ -117,9 +117,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
 
                /* set HW default power register */
                VT6655_MAC_SELECT_PAGE1(priv->port_offset);
-               RFbSetPower(priv, RATE_1M, priv->byCurrentCh);
+               RFbSetPower(priv, RATE_1M, priv->current_ch);
                iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWRCCK);
-               RFbSetPower(priv, RATE_6M, priv->byCurrentCh);
+               RFbSetPower(priv, RATE_6M, priv->current_ch);
                iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM);
                VT6655_MAC_SELECT_PAGE0(priv->port_offset);
 
@@ -127,9 +127,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)
        }
 
        if (priv->byBBType == BB_TYPE_11B)
-               RFbSetPower(priv, RATE_1M, priv->byCurrentCh);
+               RFbSetPower(priv, RATE_1M, priv->current_ch);
        else
-               RFbSetPower(priv, RATE_6M, priv->byCurrentCh);
+               RFbSetPower(priv, RATE_6M, priv->current_ch);
 
        return ret;
 }
index b166d296b82de131d6538cf6c3763a1c641e9391..b3ac6237010b56ffc92525d60727cf28cfb7b54b 100644 (file)
@@ -239,7 +239,7 @@ struct vnt_private {
        bool bIsBeaconBufReadySet;
        unsigned int    cbBeaconBufReadySetCnt;
        bool bFixRate;
-       u16 byCurrentCh;
+       u16 current_ch;
 
        bool bAES;