diff options
author | Nishka Dasgupta | 2019-07-01 08:22:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-07-01 10:50:22 +0200 |
commit | 4c1bcb0ee7a345539998ae99d967ddb5894253bb (patch) | |
tree | dcfa3081692bcb537ebd82b21d257349a00f0651 /drivers/staging/rtl8723bs | |
parent | staging: rtl8723bs: Remove rtw_btcoex_IQKNotify() (diff) | |
download | kernel-qcow2-linux-4c1bcb0ee7a345539998ae99d967ddb5894253bb.tar.gz kernel-qcow2-linux-4c1bcb0ee7a345539998ae99d967ddb5894253bb.tar.xz kernel-qcow2-linux-4c1bcb0ee7a345539998ae99d967ddb5894253bb.zip |
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: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_btcoex.c | 5 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/include/rtw_btcoex.h | 1 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 |
4 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_btcoex.c b/drivers/staging/rtl8723bs/core/rtw_btcoex.c index dc4e2c806ec0..2425b9ce8712 100644 --- a/drivers/staging/rtl8723bs/core/rtw_btcoex.c +++ b/drivers/staging/rtl8723bs/core/rtw_btcoex.c @@ -9,11 +9,6 @@ #include <rtw_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) { hal_btcoex_LpsNotify(padapter, type); diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index c337a5285c68..056be4674596 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -43,7 +43,7 @@ void ips_enter(struct adapter *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); _ips_enter(padapter); @@ -90,7 +90,7 @@ int ips_leave(struct adapter *padapter) mutex_unlock(&pwrpriv->lock); if (_SUCCESS == ret) - rtw_btcoex_IpsNotify(padapter, IPS_NONE); + hal_btcoex_IpsNotify(padapter, IPS_NONE); return ret; } diff --git a/drivers/staging/rtl8723bs/include/rtw_btcoex.h b/drivers/staging/rtl8723bs/include/rtw_btcoex.h index d3b6851131d6..ebd51519680f 100644 --- a/drivers/staging/rtl8723bs/include/rtw_btcoex.h +++ b/drivers/staging/rtl8723bs/include/rtw_btcoex.h @@ -15,7 +15,6 @@ #define PACKET_ARP 2 #define PACKET_EAPOL 3 -void rtw_btcoex_IpsNotify(struct adapter *, u8 type); void rtw_btcoex_LpsNotify(struct adapter *, u8 type); void rtw_btcoex_ScanNotify(struct adapter *, u8 type); void rtw_btcoex_ConnectNotify(struct adapter *, u8 action); diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 6a8a7092f3ba..d505ccebad40 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -1208,7 +1208,7 @@ void rtw_dev_unload(struct adapter *padapter) } if (padapter->bSurpriseRemoved == false) { - rtw_btcoex_IpsNotify(padapter, pwrctl->ips_mode_req); + hal_btcoex_IpsNotify(padapter, pwrctl->ips_mode_req); #ifdef CONFIG_WOWLAN if (pwrctl->bSupportRemoteWakeup == true && pwrctl->wowlan_mode == true) { |