staging: rtl8723au: Get rid of ODM_Read4Byte()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 5 Mar 2015 19:24:47 +0000 (14:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 01:14:44 +0000 (17:14 -0800)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c
drivers/staging/rtl8723au/hal/odm_interface.c
drivers/staging/rtl8723au/include/odm_interface.h

index 247ae631077f6ed7dea7b983a4e307857b989800..59af7bcdb64782052445ab28b0e3d48faa834179 100644 (file)
@@ -1256,7 +1256,6 @@ static void odm_TXPowerTrackingInit(struct dm_odm_t *pDM_Odm)
 /* EDCA Turbo */
 static void ODM_EdcaTurboInit23a(struct dm_odm_t *pDM_Odm)
 {
-
        struct rtw_adapter *Adapter = pDM_Odm->Adapter;
 
        pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = false;
@@ -1264,16 +1263,16 @@ static void ODM_EdcaTurboInit23a(struct dm_odm_t *pDM_Odm)
 
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD,
                     ("Orginial VO PARAM: 0x%x\n",
-                     ODM_Read4Byte(pDM_Odm, ODM_EDCA_VO_PARAM)));
+                     rtl8723au_read32(Adapter, ODM_EDCA_VO_PARAM)));
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD,
                     ("Orginial VI PARAM: 0x%x\n",
-                     ODM_Read4Byte(pDM_Odm, ODM_EDCA_VI_PARAM)));
+                     rtl8723au_read32(Adapter, ODM_EDCA_VI_PARAM)));
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD,
                     ("Orginial BE PARAM: 0x%x\n",
-                     ODM_Read4Byte(pDM_Odm, ODM_EDCA_BE_PARAM)));
+                     rtl8723au_read32(Adapter, ODM_EDCA_BE_PARAM)));
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_EDCA_TURBO, ODM_DBG_LOUD,
                     ("Orginial BK PARAM: 0x%x\n",
-                     ODM_Read4Byte(pDM_Odm, ODM_EDCA_BK_PARAM)));
+                     rtl8723au_read32(Adapter, ODM_EDCA_BK_PARAM)));
 }
 
 static void odm_EdcaTurboCheck23a(struct dm_odm_t *pDM_Odm)
index 01413006e11d46a24c958c4442121f5aa641f7ac..5b57641d0c00bf1852a351bddebeb6da6902984e 100644 (file)
 /*  */
 #include <usb_ops_linux.h>
 
-u32 ODM_Read4Byte(struct dm_odm_t *pDM_Odm, u32 RegAddr)
-{
-       struct rtw_adapter *Adapter = pDM_Odm->Adapter;
-
-       return rtl8723au_read32(Adapter, RegAddr);
-}
-
 void ODM_SetBBReg(
        struct dm_odm_t *pDM_Odm,
        u32             RegAddr,
index a4ce5ce6400ace783efca1d85e05147de9e71cef..62a46c03e98b2ac3da8566a9ef4bad328c3df334 100644 (file)
@@ -54,8 +54,6 @@ typedef void (*RT_WORKITEM_CALL_BACK)(struct work_struct *pContext);
 /*  =========== EXtern Function Prototype */
 /*  */
 
-
-u32 ODM_Read4Byte(struct dm_odm_t *pDM_Odm, u32 RegAddr);
 void ODM_SetBBReg(struct dm_odm_t *pDM_Odm, u32 RegAddr, u32 BitMask, u32 Data);
 u32 ODM_GetBBReg(struct dm_odm_t *pDM_Odm, u32 RegAddr, u32 BitMask);
 void ODM_SetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath,