Commit 4c1bcb0e authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8723bs: Remove rtw_btcoex_IpsNotify()

Remove function rtw_btcoex_IpsNotify as all it does is call
hal_btcoex_IpsNotify.
Modify call sites accordingly.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6fc61d9f
...@@ -9,11 +9,6 @@ ...@@ -9,11 +9,6 @@
#include <rtw_btcoex.h> #include <rtw_btcoex.h>
#include <hal_btcoex.h> #include <hal_btcoex.h>
void rtw_btcoex_IpsNotify(struct adapter *padapter, u8 type)
{
hal_btcoex_IpsNotify(padapter, type);
}
void rtw_btcoex_LpsNotify(struct adapter *padapter, u8 type) void rtw_btcoex_LpsNotify(struct adapter *padapter, u8 type)
{ {
hal_btcoex_LpsNotify(padapter, type); hal_btcoex_LpsNotify(padapter, type);
......
...@@ -43,7 +43,7 @@ void ips_enter(struct adapter *padapter) ...@@ -43,7 +43,7 @@ void ips_enter(struct adapter *padapter)
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
rtw_btcoex_IpsNotify(padapter, pwrpriv->ips_mode_req); hal_btcoex_IpsNotify(padapter, pwrpriv->ips_mode_req);
mutex_lock(&pwrpriv->lock); mutex_lock(&pwrpriv->lock);
_ips_enter(padapter); _ips_enter(padapter);
...@@ -90,7 +90,7 @@ int ips_leave(struct adapter *padapter) ...@@ -90,7 +90,7 @@ int ips_leave(struct adapter *padapter)
mutex_unlock(&pwrpriv->lock); mutex_unlock(&pwrpriv->lock);
if (_SUCCESS == ret) if (_SUCCESS == ret)
rtw_btcoex_IpsNotify(padapter, IPS_NONE); hal_btcoex_IpsNotify(padapter, IPS_NONE);
return ret; return ret;
} }
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#define PACKET_ARP 2 #define PACKET_ARP 2
#define PACKET_EAPOL 3 #define PACKET_EAPOL 3
void rtw_btcoex_IpsNotify(struct adapter *, u8 type);
void rtw_btcoex_LpsNotify(struct adapter *, u8 type); void rtw_btcoex_LpsNotify(struct adapter *, u8 type);
void rtw_btcoex_ScanNotify(struct adapter *, u8 type); void rtw_btcoex_ScanNotify(struct adapter *, u8 type);
void rtw_btcoex_ConnectNotify(struct adapter *, u8 action); void rtw_btcoex_ConnectNotify(struct adapter *, u8 action);
......
...@@ -1208,7 +1208,7 @@ void rtw_dev_unload(struct adapter *padapter) ...@@ -1208,7 +1208,7 @@ void rtw_dev_unload(struct adapter *padapter)
} }
if (padapter->bSurpriseRemoved == false) { if (padapter->bSurpriseRemoved == false) {
rtw_btcoex_IpsNotify(padapter, pwrctl->ips_mode_req); hal_btcoex_IpsNotify(padapter, pwrctl->ips_mode_req);
#ifdef CONFIG_WOWLAN #ifdef CONFIG_WOWLAN
if (pwrctl->bSupportRemoteWakeup == true && if (pwrctl->bSupportRemoteWakeup == true &&
pwrctl->wowlan_mode == true) { pwrctl->wowlan_mode == true) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment