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 dd7445f..c08042a 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 6252371..b9de658 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__ */