staging: r8188eu: rename AntDivBeforeLink8188E to rtw_hal_antdiv_before_linked
authorIvan Safonov <insafonov@gmail.com>
Sat, 3 Sep 2016 15:33:15 +0000 (22:33 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:30:03 +0000 (11:30 +0200)
And remove two one-line wrappers.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_intf.c
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/hal_intf.h
drivers/staging/rtl8188eu/include/rtl8188e_dm.h

index c64e53fdaf2e74984566735bb9a304cd30fffa1b..bd5159cfc401478b97c5958f1cc823e43e7ed51d 100644 (file)
@@ -124,13 +124,6 @@ void rtw_hal_dm_watchdog(struct adapter *adapt)
                adapt->HalFunc.hal_dm_watchdog(adapt);
 }
 
-u8 rtw_hal_antdiv_before_linked(struct adapter *adapt)
-{
-       if (adapt->HalFunc.AntDivBeforeLinkHandler)
-               return adapt->HalFunc.AntDivBeforeLinkHandler(adapt);
-       return false;
-}
-
 void rtw_hal_reset_security_engine(struct adapter *adapter)
 {
        if (adapter->HalFunc.hal_reset_security_engine)
index 1fa81e8a9d29912d565854a98523386a28eea2b7..c4c8798dbf6e22fc222774ac918cd2cb6efdfc19 100644 (file)
@@ -201,7 +201,7 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *Adapter, struct wlan_bssid_ex
 }
 
 /*  Add new function to reset the state of antenna diversity before link. */
-u8 AntDivBeforeLink8188E(struct adapter *Adapter)
+u8 rtw_hal_antdiv_before_linked(struct adapter *Adapter)
 {
        struct hal_data_8188e *hal_data = GET_HAL_DATA(Adapter);
        struct odm_dm_struct *dm_odm = &hal_data->odmpriv;
index 7629c68c10d95a7bfbdfdcb53f55f933408d05d3..6facf4baaa476a5a424199923817fc6a6b0bf45a 100644 (file)
@@ -199,8 +199,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
        pHalFunc->hal_dm_watchdog = &rtl8188e_HalDmWatchDog;
 
        pHalFunc->Add_RateATid = &rtl8188e_Add_RateATid;
-
-       pHalFunc->AntDivBeforeLinkHandler = &AntDivBeforeLink8188E;
 }
 
 /*  */
index c7b00bbffbe281563ab3378258e33585bc090174..c79fa9c2c0066fd2b15a475ce470aa4394be8419 100644 (file)
@@ -157,8 +157,6 @@ struct hal_ops {
        void    (*Add_RateATid)(struct adapter *adapter, u32 bitmap, u8 arg,
                                u8 rssi_level);
 
-       u8      (*AntDivBeforeLinkHandler)(struct adapter *adapter);
-
        void (*hal_reset_security_engine)(struct adapter *adapter);
 };
 
index 4190112a50bf6997febeb1b6b2d6a1377394986b..4ef657b5c9d47acfb39e379c5a9a1555169ebeea 100644 (file)
@@ -51,6 +51,5 @@ void rtl8188e_HalDmWatchDog(struct adapter *adapt);
 
 void AntDivCompare8188E(struct adapter *adapt, struct wlan_bssid_ex *dst,
                        struct wlan_bssid_ex *src);
-u8 AntDivBeforeLink8188E(struct adapter *adapt);
 
 #endif