Staging: rtl8192e: Rename variable LPSDelayCnt
authorTree Davies <tdavies@darkphysics.net>
Fri, 26 Jan 2024 22:30:52 +0000 (14:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:28:17 +0000 (17:28 +0100)
Rename variable LPSDelayCnt to lps_delay_cnt to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240126223106.986093-5-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 32acba4ce3f742214a6086158677d1d9cb73abfd..a527d7f61eef4eaf6076811bf76e113a5f7cb5f6 100644 (file)
@@ -705,7 +705,7 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
        priv->hw_rf_off_action = 0;
        priv->set_rf_pwr_state_in_progress = false;
        priv->rtllib->pwr_save_ctrl.bLeisurePs = true;
-       priv->rtllib->LPSDelayCnt = 0;
+       priv->rtllib->lps_delay_cnt = 0;
        priv->rtllib->sta_sleep = LPS_IS_WAKE;
        priv->rtllib->rf_power_state = rf_on;
 
index 94f370b40378a80bf34d6338cf2e81c0443abcf5..0a366874a827eef30fc666bdd7c51e8135d5fba7 100644 (file)
@@ -1375,7 +1375,7 @@ struct rtllib_device {
        /* for PS mode */
        unsigned long last_rx_ps_time;
        bool                    awake_pkt_sent;
-       u8                      LPSDelayCnt;
+       u8                      lps_delay_cnt;
 
        /* used if IEEE_SOFTMAC_SINGLE_QUEUE is set */
        struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM];
index 8a60bf3b70792a2551aaab520608d74f357c539b..b5cd030f28c8706aa5eb6e340d2ae43c6650246e 100644 (file)
@@ -1351,8 +1351,8 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
        u8 dtim;
        struct rt_pwr_save_ctrl *psc = &ieee->pwr_save_ctrl;
 
-       if (ieee->LPSDelayCnt) {
-               ieee->LPSDelayCnt--;
+       if (ieee->lps_delay_cnt) {
+               ieee->lps_delay_cnt--;
                return 0;
        }
 
index b82f3415085bf3bbcd720db30423f2279af2208c..e61eb6e87ab43b85dcc59d50f0f2314b4ffe44ae 100644 (file)
@@ -595,14 +595,14 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                                   ((((u8 *)udp)[1] == 67) &&
                                   (((u8 *)udp)[3] == 68))) {
                                        bdhcp = true;
-                                       ieee->LPSDelayCnt = 200;
+                                       ieee->lps_delay_cnt = 200;
                                }
                        }
                } else if (ether_type == ETH_P_ARP) {
                        netdev_info(ieee->dev,
                                    "=================>DHCP Protocol start tx ARP pkt!!\n");
                        bdhcp = true;
-                       ieee->LPSDelayCnt =
+                       ieee->lps_delay_cnt =
                                 ieee->current_network.tim.tim_count;
                }
        }