staging: rtl8188eu: Rework function _PHY_PathAStandBy()
authornavin patidar <navin.patidar@gmail.com>
Sun, 7 Sep 2014 11:07:54 +0000 (16:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:05:20 +0000 (14:05 -0700)
Rename CamelCase local variables and function name.
Remove unnecessary debugging messages and local variables.
Declare it as a static function.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c
drivers/staging/rtl8188eu/include/HalPhyRf_8188e.h

index dd7445f37e025b60edfc3135f643437eb5961d86..c08042a163b7d39567b151e8775897770a88a160 100644 (file)
@@ -696,15 +696,8 @@ static void mac_setting_calibration(struct adapter *adapt, u32 *mac_reg, u32 *ba
        usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT5)));
 }
 
-void
-_PHY_PathAStandBy(
-       struct adapter *adapt
-       )
+static void path_a_standby(struct adapter *adapt)
 {
-       struct hal_data_8188e   *pHalData = GET_HAL_DATA(adapt);
-       struct odm_dm_struct *dm_odm = &pHalData->odmpriv;
-
-       ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD,  ("Path-A standby mode!\n"));
 
        phy_set_bb_reg(adapt, rFPGA0_IQK, bMaskDWord, 0x0);
        phy_set_bb_reg(adapt, 0x840, bMaskDWord, 0x00010000);
@@ -939,7 +932,7 @@ static void phy_IQCalibrate_8188E(struct adapter *adapt, s32 result[][8], u8 t,
        }
 
        if (is2t) {
-               _PHY_PathAStandBy(adapt);
+               path_a_standby(adapt);
 
                /*  Turn Path B ADDA on */
                path_adda_on(adapt, ADDA_REG, false, is2t);
index 625237180977ab9f5c14967c8b76f3edca323ba1..b9de658a3467e4ed865b200352197bf7b08cb958 100644 (file)
@@ -46,6 +46,4 @@ void PHY_LCCalibrate_8188E(struct adapter *pAdapter);
 /*  AP calibrate */
 void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter);
 
-void _PHY_PathAStandBy(struct adapter *pAdapter);
-
 #endif /*  #ifndef __HAL_PHY_RF_8188E_H__ */