Skip to content

Commit

Permalink
staging: rtl8723bs: Remove rtw_btcoex_LpsNotify()
Browse files Browse the repository at this point in the history
Remove function rtw_btcoex_LpsNotify as all it does is call
hal_btcoex_LpsNotify.
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>
  • Loading branch information
Nishka Dasgupta authored and Greg Kroah-Hartman committed Jul 1, 2019
1 parent 4c1bcb0 commit a618315
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/rtl8723bs/core/rtw_btcoex.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
#include <rtw_btcoex.h>
#include <hal_btcoex.h>

void rtw_btcoex_LpsNotify(struct adapter *padapter, u8 type)
{
hal_btcoex_LpsNotify(padapter, type);
}

void rtw_btcoex_ScanNotify(struct adapter *padapter, u8 type)
{
hal_btcoex_ScanNotify(padapter, type);
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a
rtw_hal_set_hwreg(padapter, HW_VAR_H2C_FW_PWRMODE, (u8 *)(&ps_mode));
pwrpriv->bFwCurrentInPSMode = false;

rtw_btcoex_LpsNotify(padapter, ps_mode);
hal_btcoex_LpsNotify(padapter, ps_mode);
}
} else {
if ((PS_RDY_CHECK(padapter) && check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE))
Expand All @@ -469,7 +469,7 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a
DBG_871X(FUNC_ADPT_FMT" Enter 802.11 power save - %s\n",
FUNC_ADPT_ARG(padapter), msg);

rtw_btcoex_LpsNotify(padapter, ps_mode);
hal_btcoex_LpsNotify(padapter, ps_mode);

pwrpriv->bFwCurrentInPSMode = true;
pwrpriv->pwr_mode = ps_mode;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8723bs/include/rtw_btcoex.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define PACKET_ARP 2
#define PACKET_EAPOL 3

void rtw_btcoex_LpsNotify(struct adapter *, u8 type);
void rtw_btcoex_ScanNotify(struct adapter *, u8 type);
void rtw_btcoex_ConnectNotify(struct adapter *, u8 action);
void rtw_btcoex_MediaStatusNotify(struct adapter *, u8 mediaStatus);
Expand Down

0 comments on commit a618315

Please sign in to comment.