Staging: rtl8192e: Rename variable Turbo_Enable
authorTree Davies <tdavies@darkphysics.net>
Tue, 27 Feb 2024 04:41:42 +0000 (20:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:15:08 +0000 (14:15 +0000)
Rename variable Turbo_Enable to turbo_enable to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240227044157.407379-6-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_softmac.c

index feee1fc5a91ef1b0868e69c4247090a3ba95fdad..51047f014c0fc8c28914bfff058d301182f0db5c 100644 (file)
@@ -948,7 +948,7 @@ struct rtllib_network {
 
        u8 wmm_info;
        struct rtllib_wmm_ac_param wmm_param[4];
-       u8 Turbo_Enable;
+       u8 turbo_enable;
        u16 CountryIeLen;
        u8 CountryIeBuf[MAX_IE_LEN];
        struct bss_ht bssht;
index 31c96a6952eb7b4a0f79d4cc1034bb19e911395f..a258f22787bed23ce445f3dad7a203a8eb19c472 100644 (file)
@@ -1685,7 +1685,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,
            info_element->data[2] == 0x4c &&
            info_element->data[3] == 0x01 &&
            info_element->data[4] == 0x02)
-               network->Turbo_Enable = 1;
+               network->turbo_enable = 1;
 
        if (*tmp_htcap_len == 0) {
                if (info_element->len >= 4 &&
@@ -2180,7 +2180,7 @@ static inline int rtllib_network_init(
        network->realtek_cap_exit = false;
        network->marvell_cap_exist = false;
        network->airgo_cap_exist = false;
-       network->Turbo_Enable = 0;
+       network->turbo_enable = 0;
        network->SignalStrength = stats->SignalStrength;
        network->RSSI = stats->SignalStrength;
        network->CountryIeLen = 0;
@@ -2340,7 +2340,7 @@ static inline void update_network(struct rtllib_device *ieee,
 
        dst->SignalStrength = src->SignalStrength;
        dst->RSSI = src->RSSI;
-       dst->Turbo_Enable = src->Turbo_Enable;
+       dst->turbo_enable = src->turbo_enable;
 
        dst->CountryIeLen = src->CountryIeLen;
        memcpy(dst->CountryIeBuf, src->CountryIeBuf, src->CountryIeLen);
index a847b6505c42b156f6a0da6b3a43f19b4e9fc655..b189ba220e22db2b566cf9832caac136f4f1ef2f 100644 (file)
@@ -707,7 +707,7 @@ rtllib_association_req(struct rtllib_network *beacon,
                                2 : 0);
 
        unsigned int wmm_info_len = beacon->qos_data.supported ? 9 : 0;
-       unsigned int turbo_info_len = beacon->Turbo_Enable ? 9 : 0;
+       unsigned int turbo_info_len = beacon->turbo_enable ? 9 : 0;
 
        int len = 0;