staging: rtl8192e: Rename btxpower_trackin.., Slide_Beaco.. and Slide_B..
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 21 Jan 2023 21:45:11 +0000 (22:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Jan 2023 18:04:49 +0000 (19:04 +0100)
Rename variable btxpower_trackingInit to tx_pwr_tracking_init,
Slide_Beacon_pwdb to slide_beacon_pwdb and Slide_Beacon_Total to
slide_beacon_total to avoid CamelCase which is not accepted by
checkpatch.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b722cd913d04d07ac1952da2add2a16cfeb2dc8c.1674336211.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

index 6c57058..9260d30 100644 (file)
@@ -1574,17 +1574,17 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
                    PHY_Beacon_RSSI_SLID_WIN_MAX) {
                        slide_beacon_adc_pwdb_statistics =
                                         PHY_Beacon_RSSI_SLID_WIN_MAX;
-                       last_beacon_adc_pwdb = priv->stats.Slide_Beacon_pwdb
+                       last_beacon_adc_pwdb = priv->stats.slide_beacon_pwdb
                                               [slide_beacon_adc_pwdb_index];
-                       priv->stats.Slide_Beacon_Total -= last_beacon_adc_pwdb;
+                       priv->stats.slide_beacon_total -= last_beacon_adc_pwdb;
                }
-               priv->stats.Slide_Beacon_Total += prev_st->RxPWDBAll;
-               priv->stats.Slide_Beacon_pwdb[slide_beacon_adc_pwdb_index] =
+               priv->stats.slide_beacon_total += prev_st->RxPWDBAll;
+               priv->stats.slide_beacon_pwdb[slide_beacon_adc_pwdb_index] =
                                                         prev_st->RxPWDBAll;
                slide_beacon_adc_pwdb_index++;
                if (slide_beacon_adc_pwdb_index >= PHY_Beacon_RSSI_SLID_WIN_MAX)
                        slide_beacon_adc_pwdb_index = 0;
-               prev_st->RxPWDBAll = priv->stats.Slide_Beacon_Total /
+               prev_st->RxPWDBAll = priv->stats.slide_beacon_total /
                                     slide_beacon_adc_pwdb_statistics;
                if (prev_st->RxPWDBAll >= 3)
                        prev_st->RxPWDBAll -= 3;
index 55a68bb..983bc66 100644 (file)
@@ -229,8 +229,8 @@ struct rt_stats {
        u8 rx_rssi_percentage[4];
        u8 rx_evm_percentage[2];
        long rxSNRdB[4];
-       u32 Slide_Beacon_pwdb[100];
-       u32 Slide_Beacon_Total;
+       u32 slide_beacon_pwdb[100];
+       u32 slide_beacon_total;
        u32     CurrentShowTxate;
 };
 
@@ -481,7 +481,7 @@ struct r8192_priv {
        bool            bcck_in_ch14;
 
        u8              txpower_count;
-       bool            btxpower_trackingInit;
+       bool            tx_pwr_tracking_init;
 
        u8              ofdm_index[2];
        u8              cck_index;
index ba92dab..79f993a 100644 (file)
@@ -768,7 +768,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev)
        u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval;
        int i = 0, CCKSwingNeedUpdate = 0;
 
-       if (!priv->btxpower_trackingInit) {
+       if (!priv->tx_pwr_tracking_init) {
                tmpRegA = rtl92e_get_bb_reg(dev, rOFDM0_XATxIQImbalance,
                                            bMaskDWord);
                for (i = 0; i < OFDM_Table_Length; i++) {
@@ -783,7 +783,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev)
                                break;
                        }
                }
-               priv->btxpower_trackingInit = true;
+               priv->tx_pwr_tracking_init = true;
                return;
        }
 
@@ -868,7 +868,7 @@ static void _rtl92e_dm_initialize_tx_power_tracking_tssi(struct net_device *dev)
 
        priv->btxpower_tracking = true;
        priv->txpower_count       = 0;
-       priv->btxpower_trackingInit = false;
+       priv->tx_pwr_tracking_init = false;
 
 }
 
@@ -882,7 +882,7 @@ static void _rtl92e_dm_init_tx_power_tracking_thermal(struct net_device *dev)
        else
                priv->btxpower_tracking = false;
        priv->txpower_count       = 0;
-       priv->btxpower_trackingInit = false;
+       priv->tx_pwr_tracking_init = false;
 }
 
 void rtl92e_dm_init_txpower_tracking(struct net_device *dev)
@@ -1073,7 +1073,7 @@ void rtl92e_dm_restore_state(struct net_device *dev)
                ratr_value &= ~(RATE_ALL_OFDM_2SS);
        rtl92e_writel(dev, RATR0, ratr_value);
        rtl92e_writeb(dev, UFWP, 1);
-       if (priv->btxpower_trackingInit && priv->btxpower_tracking)
+       if (priv->tx_pwr_tracking_init && priv->btxpower_tracking)
                _rtl92e_dm_tx_power_reset_recovery(dev);
 
        _rtl92e_dm_bb_initialgain_restore(dev);