staging: rtl8192e: avoid CamelCase <RATRIndex>
authorJohn Grace <johnmgrace1@gmail.com>
Tue, 25 Apr 2023 00:48:53 +0000 (20:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 May 2023 14:08:46 +0000 (16:08 +0200)
Linux kernel coding-style suggests to not use mixed-case names. Fix
checkpatch issue by changing the variable name from camel case to snake
case.

Signed-off-by: John Grace <johnmgrace1@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ZEcjdUR/bnln7Z1J@iris
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c
drivers/staging/rtl8192e/rtllib_tx.c

index aed53fedeb61c4e2534dc976afabf0f0d94d3da8..c612e31d1a84fef81a0fee4fc354005c8b80ff79 100644 (file)
@@ -1008,7 +1008,7 @@ void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
        pdesc->PktSize = skb->len - sizeof(struct tx_fwinfo_8190pci);
 
        pdesc->SecCAMID = 0;
-       pdesc->RATid = cb_desc->RATRIndex;
+       pdesc->RATid = cb_desc->ratr_index;
 
 
        pdesc->NoEnc = 1;
index 27040d1e3230fa6783d25f6524ca3d5988fabc03..b58a30d68f2f52614cad1005098d1abbca42228b 100644 (file)
@@ -466,7 +466,7 @@ static void _rtl92e_prepare_beacon(struct tasklet_struct *t)
        tcb_desc = (struct cb_desc *)(pnewskb->cb + 8);
        tcb_desc->queue_index = BEACON_QUEUE;
        tcb_desc->data_rate = 2;
-       tcb_desc->RATRIndex = 7;
+       tcb_desc->ratr_index = 7;
        tcb_desc->tx_dis_rate_fallback = 1;
        tcb_desc->tx_use_drv_assinged_rate = 1;
        skb_push(pnewskb, priv->rtllib->tx_headroom);
@@ -1440,7 +1440,7 @@ static int _rtl92e_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
                return 0;
        }
 
-       tcb_desc->RATRIndex = 7;
+       tcb_desc->ratr_index = 7;
        tcb_desc->tx_dis_rate_fallback = 1;
        tcb_desc->tx_use_drv_assinged_rate = 1;
        tcb_desc->bTxEnableFwCalcDur = 1;
index 6e665e866f1f3148e40c7685678468102c0e579b..d5f5ea5615fc775b9c3b7f9e2dd2c5b55734723c 100644 (file)
@@ -139,7 +139,7 @@ struct cb_desc {
        u8 rata_index;
        u8 queue_index;
        u16 txbuf_size;
-       u8 RATRIndex;
+       u8 ratr_index;
        u8 bAMSDU:1;
        u8 bFromAggrQ:1;
        u8 reserved6:6;
index b9886e83a6dc928d242f25f6631c86569e9a68fa..1ca77cdbafa365fb811172e5a5739453c93ad309 100644 (file)
@@ -219,7 +219,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee)
                tcb_desc->queue_index = HIGH_QUEUE;
 
        tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
-       tcb_desc->RATRIndex = 7;
+       tcb_desc->ratr_index = 7;
        tcb_desc->tx_dis_rate_fallback = 1;
        tcb_desc->tx_use_drv_assinged_rate = 1;
        if (single) {
@@ -297,7 +297,7 @@ softmac_ps_mgmt_xmit(struct sk_buff *skb,
 
 
        tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
-       tcb_desc->RATRIndex = 7;
+       tcb_desc->ratr_index = 7;
        tcb_desc->tx_dis_rate_fallback = 1;
        tcb_desc->tx_use_drv_assinged_rate = 1;
        if (single) {
index 9ab8ee46ef66898e654b4990ab0bd2ad2ff9ca6a..54119fba8a572e4281c4037b7edea43922cc9f57 100644 (file)
@@ -486,7 +486,7 @@ static void rtllib_txrate_selectmode(struct rtllib_device *ieee,
            !tcb_desc->tx_use_drv_assinged_rate) {
                if (ieee->iw_mode == IW_MODE_INFRA ||
                    ieee->iw_mode == IW_MODE_ADHOC)
-                       tcb_desc->RATRIndex = 0;
+                       tcb_desc->ratr_index = 0;
        }
 }
 
@@ -892,7 +892,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                                tcb_desc->tx_dis_rate_fallback = 1;
                        }
 
-                       tcb_desc->RATRIndex = 7;
+                       tcb_desc->ratr_index = 7;
                        tcb_desc->tx_use_drv_assinged_rate = 1;
                } else {
                        if (is_multicast_ether_addr(header.addr1))
@@ -916,7 +916,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                                        tcb_desc->tx_dis_rate_fallback = 1;
                                }
 
-                               tcb_desc->RATRIndex = 7;
+                               tcb_desc->ratr_index = 7;
                                tcb_desc->tx_use_drv_assinged_rate = 1;
                                tcb_desc->bdhcp = 1;
                        }