]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: Rework function _PHY_MACSettingCalibration()
authornavin patidar <navin.patidar@gmail.com>
Sun, 7 Sep 2014 11:07:53 +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 24278f979ecf5121780044956f061477cb27dd23..dd7445f37e025b60edfc3135f643437eb5961d86 100644 (file)
@@ -684,25 +684,16 @@ static void path_adda_on(struct adapter *adapt, u32 *adda_reg,
                phy_set_bb_reg(adapt, adda_reg[i], bMaskDWord, path_on);
 }
 
-void
-_PHY_MACSettingCalibration(
-               struct adapter *adapt,
-               u32 *MACReg,
-               u32 *MACBackup
-       )
+static void mac_setting_calibration(struct adapter *adapt, u32 *mac_reg, u32 *backup)
 {
        u32 i = 0;
-       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, ("MAC settings for Calibration.\n"));
 
-       usb_write8(adapt, MACReg[i], 0x3F);
+       usb_write8(adapt, mac_reg[i], 0x3F);
 
        for (i = 1; i < (IQK_MAC_REG_NUM - 1); i++) {
-               usb_write8(adapt, MACReg[i], (u8)(MACBackup[i]&(~BIT3)));
+               usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT3)));
        }
-       usb_write8(adapt, MACReg[i], (u8)(MACBackup[i]&(~BIT5)));
+       usb_write8(adapt, mac_reg[i], (u8)(backup[i]&(~BIT5)));
 }
 
 void
@@ -906,7 +897,7 @@ static void phy_IQCalibrate_8188E(struct adapter *adapt, s32 result[][8], u8 t,
        }
 
        /* MAC settings */
-       _PHY_MACSettingCalibration(adapt, IQK_MAC_REG, dm_odm->RFCalibrateInfo.IQK_MAC_backup);
+       mac_setting_calibration(adapt, IQK_MAC_REG, dm_odm->RFCalibrateInfo.IQK_MAC_backup);
 
        /* Page B init */
        /* AP or IQK */
index efd1feaa40961c3feed0d679bc0bf12d3bad9488..625237180977ab9f5c14967c8b76f3edca323ba1 100644 (file)
@@ -46,9 +46,6 @@ void PHY_LCCalibrate_8188E(struct adapter *pAdapter);
 /*  AP calibrate */
 void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter);
 
-void _PHY_MACSettingCalibration(struct adapter *pAdapter, u32 *MACReg,
-                               u32 *MACBackup);
-
 void _PHY_PathAStandBy(struct adapter *pAdapter);
 
 #endif /*  #ifndef __HAL_PHY_RF_8188E_H__ */