staging: rtl8192e: Rename InterruptLog, RxCounter and bHwRfOffAction
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 13 Nov 2022 04:36:09 +0000 (05:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Nov 2022 18:50:15 +0000 (19:50 +0100)
Rename variable InterruptLog to int_log, RxCounter to rx_ctr and
bHwRfOffAction to hw_rf_off_action 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/82ea07ddd894ac9b863ce90ddb9ba78065bd1f4e.1668313325.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/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

index 0eeb9b2..e530f91 100644 (file)
@@ -1928,7 +1928,7 @@ void rtl92e_stop_adapter(struct net_device *dev, bool reset)
        if (!reset) {
                mdelay(150);
 
-               priv->bHwRfOffAction = 2;
+               priv->hw_rf_off_action = 2;
 
                if (!priv->rtllib->bSupportRemoteWakeUp) {
                        rtl92e_set_rf_off(dev);
@@ -2129,7 +2129,7 @@ bool rtl92e_is_rx_stuck(struct net_device *dev)
 
        SlotIndex = (priv->SilentResetRxSlotIndex++)%SilentResetRxSoltNum;
 
-       if (priv->RxCounter == RegRxCounter) {
+       if (priv->rx_ctr == RegRxCounter) {
                priv->SilentResetRxStuckEvent[SlotIndex] = 1;
 
                for (i = 0; i < SilentResetRxSoltNum; i++)
@@ -2147,7 +2147,7 @@ bool rtl92e_is_rx_stuck(struct net_device *dev)
                priv->SilentResetRxStuckEvent[SlotIndex] = 0;
        }
 
-       priv->RxCounter = RegRxCounter;
+       priv->rx_ctr = RegRxCounter;
 
        return bStuck;
 }
index ac3c7f0..a813ede 100644 (file)
@@ -1342,7 +1342,7 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
                                mdelay(1);
                                rtl92e_set_bb_reg(dev, rFPGA0_AnalogParameter1,
                                                 0x4, 0x1);
-                               priv->bHwRfOffAction = 0;
+                               priv->hw_rf_off_action = 0;
 
                                rtl92e_set_bb_reg(dev, rFPGA0_XA_RFInterfaceOE,
                                                  BIT4, 0x1);
@@ -1450,7 +1450,7 @@ bool rtl92e_set_rf_power_state(struct net_device *dev,
        bool bResult = false;
 
        if (rf_power_state == priv->rtllib->rf_power_state &&
-           priv->bHwRfOffAction == 0) {
+           priv->hw_rf_off_action == 0) {
                return bResult;
        }
 
index 1c4985d..43601ec 100644 (file)
@@ -869,13 +869,13 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
        priv->force_reset = false;
        memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
 
-       memset(&priv->InterruptLog, 0, sizeof(struct log_int_8190));
-       priv->RxCounter = 0;
+       memset(&priv->int_log, 0, sizeof(struct log_int_8190));
+       priv->rx_ctr = 0;
        priv->rtllib->wx_set_enc = 0;
        priv->hw_radio_off = false;
        priv->rtllib->rf_off_reason = 0;
        priv->rf_change_in_progress = false;
-       priv->bHwRfOffAction = 0;
+       priv->hw_rf_off_action = 0;
        priv->SetRFPowerStateInProgress = false;
        priv->rtllib->pwr_save_ctrl.bLeisurePs = true;
        priv->rtllib->LPSDelayCnt = 0;
@@ -2189,7 +2189,7 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev)
 
        if (inta & IMR_ROK) {
                priv->stats.rxint++;
-               priv->InterruptLog.nIMR_ROK++;
+               priv->int_log.nIMR_ROK++;
                tasklet_schedule(&priv->irq_rx_tasklet);
        }
 
index dfbc9fb..b1656d4 100644 (file)
@@ -330,7 +330,7 @@ struct r8192_priv {
 
        struct work_struct                              reset_wq;
 
-       struct log_int_8190 InterruptLog;
+       struct log_int_8190 int_log;
 
        enum rt_customer_id CustomerID;
 
@@ -469,7 +469,7 @@ struct r8192_priv {
 
        u16 reg_chnl_plan;
        u16 ChannelPlan;
-       u8 bHwRfOffAction;
+       u8 hw_rf_off_action;
 
        bool rf_change_in_progress;
        bool SetRFPowerStateInProgress;
@@ -538,7 +538,7 @@ struct r8192_priv {
 
        enum reset_type rst_progress;
        u16             TxCounter;
-       u16             RxCounter;
+       u16             rx_ctr;
        bool            bResetInProgress;
        bool            force_reset;
        bool            force_lps;
index 234e85a..e0f6f14 100644 (file)
@@ -1693,7 +1693,7 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
 
        if (bActuallySet) {
                mdelay(1000);
-               priv->bHwRfOffAction = 1;
+               priv->hw_rf_off_action = 1;
                rtl92e_set_rf_state(dev, rf_power_state_to_set, RF_CHANGE_BY_HW);
                if (priv->hw_radio_off)
                        argv[1] = "RFOFF";