staging: rtl8723au: Eliminate wrapper ODM_ConfigRFWithHeaderFile23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 13 Jul 2014 07:32:03 +0000 (09:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:14:31 +0000 (12:14 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm_HWConfig.c
drivers/staging/rtl8723au/hal/odm_RegConfig8723A.c
drivers/staging/rtl8723au/hal/rtl8723a_rf6052.c
drivers/staging/rtl8723au/include/odm_HWConfig.h

index 388654d502d0aa14482687eb9bea22279224ec47..4fc0b06c5dbcc7d34d0e55c1cf71cd78110b9630 100644 (file)
@@ -423,21 +423,6 @@ void ODM_MacStatusQuery23a(struct dm_odm_t *pDM_Odm, u8 *pMacStatus, u8 MacID,
 
 }
 
-int ODM_ConfigRFWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
-                                 enum RF_RADIO_PATH Content,
-                                 enum RF_RADIO_PATH eRFPath)
-{
-       ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
-                    ("===>ODM_ConfigRFWithHeaderFile23a\n"));
-       if (pDM_Odm->SupportICType == ODM_RTL8723A) {
-               if (eRFPath == RF_PATH_A)
-                       ODM_ReadAndConfig_RadioA_1T_8723A(pDM_Odm);
-       }
-       ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_TRACE,
-                    ("ODM_ConfigRFWithHeaderFile23a: Radio No %x\n", eRFPath));
-       return _SUCCESS;
-}
-
 int ODM_ConfigBBWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
                                  enum odm_bb_config_type ConfigType)
 {
index d076e14f36b9cc06b01697798a3426126842e3ab..8f883d933174098052bd9cf26727396980c39cc6 100644 (file)
@@ -54,8 +54,7 @@ void odm_ConfigRF_RadioA_8723A(struct dm_odm_t *pDM_Odm,
        odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_A,
                              Addr|maskforPhySet);
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
-                    ("===> ODM_ConfigRFWithHeaderFile23a: [RadioA] %08X %08X\n",
-                    Addr, Data));
+                    ("===> %s: [RadioA] %08X %08X\n", __func__, Addr, Data));
 }
 
 void odm_ConfigRF_RadioB_8723A(struct dm_odm_t *pDM_Odm,
@@ -69,8 +68,7 @@ void odm_ConfigRF_RadioB_8723A(struct dm_odm_t *pDM_Odm,
        odm_ConfigRFReg_8723A(pDM_Odm, Addr, Data, RF_PATH_B,
                              Addr|maskforPhySet);
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
-                    ("===> ODM_ConfigRFWithHeaderFile23a: [RadioB] %08X %08X\n",
-                    Addr, Data));
+                    ("===> %s: [RadioB] %08X %08X\n", __func__, Addr, Data));
 }
 
 void odm_ConfigMAC_8723A(struct dm_odm_t *pDM_Odm,
index 6686a298b2047b61216c193c9a64b764eb27da66..2dc0886e5f90557302685fcbc4c9c39c1dea4b9b 100644 (file)
@@ -455,13 +455,9 @@ static int phy_RF6052_Config_ParaFile(struct rtw_adapter *Adapter)
                /*----Initialize RF fom connfiguration file----*/
                switch (eRFPath) {
                case RF_PATH_A:
+                       ODM_ReadAndConfig_RadioA_1T_8723A(&pHalData->odmpriv);
+                       break;
                case RF_PATH_B:
-                       if (ODM_ConfigRFWithHeaderFile23a(&pHalData->odmpriv,
-                                                         (enum RF_RADIO_PATH)
-                                                         eRFPath,
-                                                         (enum RF_RADIO_PATH)
-                                                         eRFPath) == _FAIL)
-                               rtStatus = _FAIL;
                        break;
                }
 
index 6b98e05d0460a46b4a0b5692096fbb6359e962c8..f8236cac9c1005bb951ef4b169092ce027ff0040 100644 (file)
@@ -160,10 +160,6 @@ void ODM_MacStatusQuery23a(struct dm_odm_t *pDM_Odm,
        bool bPacketBeacon
 );
 
-int ODM_ConfigRFWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
-                                 enum RF_RADIO_PATH Content,
-                                 enum RF_RADIO_PATH eRFPath);
-
 int ODM_ConfigBBWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
                                  enum odm_bb_config_type ConfigType);