staging: rtl8192e: Rename SetRFPowerState
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 19 Jul 2015 17:27:59 +0000 (19:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:24:20 +0000 (21:24 -0700)
Use naming schema found in other rtlwifi devices.
Rename SetRFPowerState to rtl92e_set_rf_power_state.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h

index 08eaa951c70b3277c7d01e71a2eaa3f42bb1429e..817cd62f28b8c4ad3fcca801fc6d1df589c7b93d 100644 (file)
@@ -1580,26 +1580,28 @@ static bool SetRFPowerState8190(struct net_device *dev,
        return bResult;
 }
 
-bool SetRFPowerState(struct net_device *dev,
-                    enum rt_rf_power_state eRFPowerState)
+bool rtl92e_set_rf_power_state(struct net_device *dev,
+                              enum rt_rf_power_state eRFPowerState)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
 
        bool bResult = false;
 
-       RT_TRACE(COMP_PS, "---------> SetRFPowerState(): eRFPowerState(%d)\n",
+       RT_TRACE(COMP_PS,
+                "---------> rtl92e_set_rf_power_state(): eRFPowerState(%d)\n",
                 eRFPowerState);
        if (eRFPowerState == priv->rtllib->eRFPowerState &&
            priv->bHwRfOffAction == 0) {
                RT_TRACE(COMP_PS,
-                        "<--------- SetRFPowerState(): discard the request for eRFPowerState(%d) is the same.\n",
+                        "<--------- rtl92e_set_rf_power_state(): discard the request for eRFPowerState(%d) is the same.\n",
                         eRFPowerState);
                return bResult;
        }
 
        bResult = SetRFPowerState8190(dev, eRFPowerState);
 
-       RT_TRACE(COMP_PS, "<--------- SetRFPowerState(): bResult(%d)\n",
+       RT_TRACE(COMP_PS,
+                "<--------- rtl92e_set_rf_power_state(): bResult(%d)\n",
                 bResult);
 
        return bResult;
index ac4d2c94e2c6cc4832c7298e5e6d72df9ffa224a..da25cba6aeb6ba5dcd3ac5e0a235d4dfe38df5c7 100644 (file)
@@ -98,12 +98,9 @@ extern void rtl92e_init_gain(struct net_device *dev, u8 Operation);
 
 extern void rtl92e_set_rf_off(struct net_device *dev);
 
-bool
-SetRFPowerState(
-       struct net_device *dev,
-       enum rt_rf_power_state eRFPowerState
-       );
-#define PHY_SetRFPowerState SetRFPowerState
+bool rtl92e_set_rf_power_state(struct net_device *dev,
+                              enum rt_rf_power_state eRFPowerState);
+#define PHY_SetRFPowerState rtl92e_set_rf_power_state
 
 extern void rtl92e_scan_op_backup(struct net_device *dev, u8 Operation);