staging: rtl8192e: Rename phy_FwRFSerialRead
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 20 Sep 2015 08:13:18 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:33:44 +0000 (03:33 +0200)
Use naming schema found in other rtlwifi devices.
Rename phy_FwRFSerialRead to _rtl92e_phy_rf_fw_read.

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

index 3a15a0f5b479626c49238e7b8807e0cfae7ec952..d227c0d9e00be31197d076e04fcb0fc27edf423b 100644 (file)
@@ -46,9 +46,8 @@ static u32 RF_CHANNEL_TABLE_ZEBRA[] = {
 
 /*************************Define local function prototype**********************/
 
-static u32 phy_FwRFSerialRead(struct net_device *dev,
-                             enum rf90_radio_path eRFPath,
-                             u32 Offset);
+static u32 _rtl92e_phy_rf_fw_read(struct net_device *dev,
+                                 enum rf90_radio_path eRFPath, u32 Offset);
 static void phy_FwRFSerialWrite(struct net_device *dev,
                                enum rf90_radio_path eRFPath,
                                u32 Offset, u32 Data);
@@ -228,8 +227,8 @@ void rtl92e_set_rf_reg(struct net_device *dev, enum rf90_radio_path eRFPath,
        RT_TRACE(COMP_PHY, "FW RF CTRL is not ready now\n");
        if (priv->Rf_Mode == RF_OP_By_FW) {
                if (BitMask != bMask12Bits) {
-                       Original_Value = phy_FwRFSerialRead(dev, eRFPath,
-                                                           RegAddr);
+                       Original_Value = _rtl92e_phy_rf_fw_read(dev, eRFPath,
+                                                               RegAddr);
                        BitShift =  rtl8192_CalculateBitShift(BitMask);
                        New_Value = (((Original_Value) & (~BitMask)) |
                                    (Data << BitShift));
@@ -266,7 +265,7 @@ u32 rtl92e_get_rf_reg(struct net_device *dev, enum rf90_radio_path eRFPath,
                return  0;
        down(&priv->rf_sem);
        if (priv->Rf_Mode == RF_OP_By_FW) {
-               Original_Value = phy_FwRFSerialRead(dev, eRFPath, RegAddr);
+               Original_Value = _rtl92e_phy_rf_fw_read(dev, eRFPath, RegAddr);
                udelay(200);
        } else {
                Original_Value = rtl8192_phy_RFSerialRead(dev, eRFPath,
@@ -278,8 +277,8 @@ u32 rtl92e_get_rf_reg(struct net_device *dev, enum rf90_radio_path eRFPath,
        return Readback_Value;
 }
 
-static u32 phy_FwRFSerialRead(struct net_device *dev,
-                             enum rf90_radio_path eRFPath, u32 Offset)
+static u32 _rtl92e_phy_rf_fw_read(struct net_device *dev,
+                                 enum rf90_radio_path eRFPath, u32 Offset)
 {
        u32             Data = 0;
        u8              time = 0;