staging: rtl8723bs: Remove rtw_btcoex_PowerOnSetting()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 1 Jul 2019 06:22:56 +0000 (11:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 08:50:22 +0000 (10:50 +0200)
Remove function rtw_btcoex_PowerOnSetting as all it does is call
hal_btcoex_PowerOnSetting.
Modify call sites accordingly.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_btcoex.c
drivers/staging/rtl8723bs/hal/sdio_halinit.c
drivers/staging/rtl8723bs/include/rtw_btcoex.h

index 1f3f8cb..b9b0328 100644 (file)
@@ -9,11 +9,6 @@
 #include <rtw_btcoex.h>
 #include <hal_btcoex.h>
 
-void rtw_btcoex_PowerOnSetting(struct adapter *padapter)
-{
-       hal_btcoex_PowerOnSetting(padapter);
-}
-
 void rtw_btcoex_HAL_Initialize(struct adapter *padapter, u8 bWifiOnly)
 {
        hal_btcoex_InitHwConfig(padapter, bWifiOnly);
index 5b72d61..33ff92e 100644 (file)
@@ -168,7 +168,7 @@ u8 _InitPowerOn_8723BS(struct adapter *padapter)
        );
        rtw_write16(padapter, REG_CR, value16);
 
-       rtw_btcoex_PowerOnSetting(padapter);
+       hal_btcoex_PowerOnSetting(padapter);
 
        /*  external switch to S1 */
        /*  0x38[11] = 0x1 */
index 03877d8..0877a68 100644 (file)
@@ -15,7 +15,6 @@
 #define        PACKET_ARP                              2
 #define        PACKET_EAPOL                    3
 
-void rtw_btcoex_PowerOnSetting(struct adapter *padapter);
 void rtw_btcoex_HAL_Initialize(struct adapter *padapter, u8 bWifiOnly);
 void rtw_btcoex_IpsNotify(struct adapter *, u8 type);
 void rtw_btcoex_LpsNotify(struct adapter *, u8 type);