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

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240126223106.986093-17-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c

index 44a9fe83184975aa9d59e1f1917de70f9dcdcbdf..5aac9110bff686a611b1e3e7efdf9a29a5a7f780 100644 (file)
@@ -208,12 +208,12 @@ void rtl92e_leisure_ps_enter(struct net_device *dev)
                return;
 
        if (psc->bLeisurePs) {
-               if (psc->LpsIdleCount >= RT_CHECK_FOR_HANG_PERIOD) {
+               if (psc->lps_idle_count >= RT_CHECK_FOR_HANG_PERIOD) {
 
                        if (priv->rtllib->ps == RTLLIB_PS_DISABLED)
                                _rtl92e_ps_set_mode(dev, RTLLIB_PS_MBCAST | RTLLIB_PS_UNICAST);
                } else {
-                       psc->LpsIdleCount++;
+                       psc->lps_idle_count++;
                }
        }
 }
index 8de46b61416b3d89fde512cb4f6e8fddfc19cccb..0ca38ca4d3afd0d501c6f8f1ba4a65388b273624 100644 (file)
@@ -1071,7 +1071,7 @@ struct rt_pwr_save_ctrl {
        enum ips_callback_function ReturnPoint;
 
        bool                            bLeisurePs;
-       u8                              LpsIdleCount;
+       u8                              lps_idle_count;
        u8                              lps_awake_intvl;
 
        u32                             CurPsLevel;
index e472924555850ea560c4da7f606c81611840de71..a7e7a0b0214fe88f8ef3dad81f993e94a96b9cbd 100644 (file)
@@ -1079,7 +1079,7 @@ static void rtllib_associate_complete_wq(void *data)
                ieee->link_detect_info.NumRecvBcnInPeriod = 1;
                ieee->link_detect_info.NumRecvDataInPeriod = 1;
        }
-       psc->LpsIdleCount = 0;
+       psc->lps_idle_count = 0;
        ieee->link_change(ieee->dev);
 }