]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: Rework function reload_adda_reg()
authornavin patidar <navin.patidar@gmail.com>
Sun, 7 Sep 2014 11:07:50 +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.
Remove unnecessary debugging messages and local variables.

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

index 1eabfdea11b40c687f94de8d2f82c41219079813..6f81bbddb49d3b4a2b563eb1741df65ac3bffffd 100644 (file)
@@ -646,15 +646,13 @@ static void save_mac_registers(struct adapter *adapt, u32 *mac_reg,
        backup[i] = usb_read32(adapt, mac_reg[i]);
 }
 
-static void reload_adda_reg(struct adapter *adapt, u32 *ADDAReg, u32 *ADDABackup, u32 RegiesterNum)
+static void reload_adda_reg(struct adapter *adapt, u32 *adda_reg,
+                           u32 *backup, u32 regiester_num)
 {
        u32 i;
-       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, ("Reload ADDA power saving parameters !\n"));
-       for (i = 0; i < RegiesterNum; i++)
-               phy_set_bb_reg(adapt, ADDAReg[i], bMaskDWord, ADDABackup[i]);
+       for (i = 0; i < regiester_num; i++)
+               phy_set_bb_reg(adapt, adda_reg[i], bMaskDWord, backup[i]);
 }
 
 static void