staging: r8188eu: Remove ODM_Write2Byte
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 7 Feb 2014 02:45:40 +0000 (20:45 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 18:44:31 +0000 (10:44 -0800)
This routine is the equivalent of rtw_write16.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c
drivers/staging/rtl8188eu/hal/odm_interface.c
drivers/staging/rtl8188eu/include/odm_interface.h

index 908a2c094cb3b2d7b67b5b7b167215c8c924fb67..dea220b507ad98260e76492beeaf83d7b930c9bf 100644 (file)
@@ -668,7 +668,9 @@ void ODM_RA_SetRSSI_8188E(struct odm_dm_struct *dm_odm, u8 macid, u8 Rssi)
 
 void ODM_RA_Set_TxRPT_Time(struct odm_dm_struct *dm_odm, u16 minRptTime)
 {
-       ODM_Write2Byte(dm_odm, REG_TX_RPT_TIME, minRptTime);
+       struct adapter *adapt = dm_odm->Adapter;
+
+       rtw_write16(adapt, REG_TX_RPT_TIME, minRptTime);
 }
 
 void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct *dm_odm, u8 *TxRPT_Buf, u16 TxRPT_Len, u32 macid_entry0, u32 macid_entry1)
index 76c54dc1aa8555281d29d70fd717e09137a3bc6c..202790cda71c59a602167942ee471b84c1f9856a 100644 (file)
 #include "odm_precomp.h"
 /*  ODM IO Relative API. */
 
-void ODM_Write2Byte(struct odm_dm_struct *pDM_Odm, u32 RegAddr, u16 Data)
-{
-       struct adapter *Adapter = pDM_Odm->Adapter;
-       rtw_write16(Adapter, RegAddr, Data);
-}
-
 void ODM_Write4Byte(struct odm_dm_struct *pDM_Odm, u32 RegAddr, u32 Data)
 {
        struct adapter *Adapter = pDM_Odm->Adapter;
index a11dec1abc8644125a74900961a7bd585e7121c8..f45f172d2309e5b8705f45ab866478782670813a 100644 (file)
@@ -77,8 +77,6 @@ typedef void (*RT_WORKITEM_CALL_BACK)(void *pContext);
 
 /*  =========== EXtern Function Prototype */
 
-void ODM_Write2Byte(struct odm_dm_struct *pDM_Odm, u32 RegAddr, u16 Data);
-
 void ODM_Write4Byte(struct odm_dm_struct *pDM_Odm, u32 RegAddr, u32 Data);
 
 /*  Memory Relative Function. */