staging:rtl8192u: Rename member disabledRF - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 3 Aug 2018 00:02:03 +0000 (01:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Aug 2018 14:21:07 +0000 (16:21 +0200)
Rename the member variable disabledRF to disabled_rf. This change
resolves the checkpatch issue with CamelCase naming.

The change is purely a coding style change which should have no impact
on runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_dm.c
drivers/staging/rtl8192u/r8192U_dm.h

index d847adf..6f17732 100644 (file)
@@ -2389,7 +2389,7 @@ static void dm_init_rxpath_selection(struct net_device *dev)
                DM_RxPathSelTable.cck_method = CCK_RX_VERSION_2;
        else
                DM_RxPathSelTable.cck_method = CCK_RX_VERSION_1;
-       DM_RxPathSelTable.disabledRF = 0;
+       DM_RxPathSelTable.disabled_rf = 0;
        for (i = 0; i < 4; i++) {
                DM_RxPathSelTable.rf_rssi[i] = 50;
                DM_RxPathSelTable.cck_pwdb_sta[i] = -64;
@@ -2420,8 +2420,8 @@ static void dm_rxpath_sel_byrssi(struct net_device *dev)
                cck_Rx_Path_initialized = 1;
        }
 
-       read_nic_byte(dev, 0xc04, &DM_RxPathSelTable.disabledRF);
-       DM_RxPathSelTable.disabledRF = ~DM_RxPathSelTable.disabledRF & 0xf;
+       read_nic_byte(dev, 0xc04, &DM_RxPathSelTable.disabled_rf);
+       DM_RxPathSelTable.disabled_rf = ~DM_RxPathSelTable.disabled_rf & 0xf;
 
        if (priv->ieee80211->mode == WIRELESS_MODE_B) {
                DM_RxPathSelTable.cck_method = CCK_RX_VERSION_2;        /* pure B mode, fixed cck version2 */
@@ -2575,9 +2575,9 @@ static void dm_rxpath_sel_byrssi(struct net_device *dev)
                rtl8192_setBBreg(dev, rCCK0_AFESetting, 0x0f000000, DM_RxPathSelTable.cck_rx_path);
        }
 
-       if (DM_RxPathSelTable.disabledRF) {
+       if (DM_RxPathSelTable.disabled_rf) {
                for (i = 0; i < 4; i++) {
-                       if ((DM_RxPathSelTable.disabledRF>>i) & 0x1) {  /* disabled rf */
+                       if ((DM_RxPathSelTable.disabled_rf >> i) & 0x1) {       /* disabled rf */
                                if (tmp_max_rssi >= DM_RxPathSelTable.rf_enable_rssi_th[i]) {
                                        /* enable the BB Rx path */
                                        /*DbgPrint("RF-%d is enabled.\n", 0x1<<i);*/
index a7cce1f..74742cb 100644 (file)
@@ -132,7 +132,7 @@ struct dynamic_rx_path_sel {
        enum cck_rx_path_method         cck_method;
        u8              cck_rx_path;
 
-       u8              disabledRF;
+       u8              disabled_rf;
        u8              reserved;
 
        u8              rf_rssi[4];