diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-01 14:48:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 18:34:07 +0200 |
commit | 78c5f096d7ea92276c0c3aca40b6dcdedcb9bb8f (patch) | |
tree | 639cca33dbc558a092a821312d36bc9d76b27c2e /drivers/staging | |
parent | 6a2ac8d4bf91d56c6335db0fc0585b9788397a3b (diff) | |
download | linux-78c5f096d7ea92276c0c3aca40b6dcdedcb9bb8f.tar.gz linux-78c5f096d7ea92276c0c3aca40b6dcdedcb9bb8f.tar.bz2 linux-78c5f096d7ea92276c0c3aca40b6dcdedcb9bb8f.zip |
staging: rtl8723bs: Remove rtw_btcoex_RpwmVal()
Remove function rtw_btcoex_RpwmVal as all it does is call
hal_btcoex_RpwmVal.
Modify call sites accordingly.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190701091817.12759-1-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_btcoex.c | 5 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/include/rtw_btcoex.h | 1 |
3 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_btcoex.c b/drivers/staging/rtl8723bs/core/rtw_btcoex.c index e747bfa4fa8c..fcdb6c1aa81c 100644 --- a/drivers/staging/rtl8723bs/core/rtw_btcoex.c +++ b/drivers/staging/rtl8723bs/core/rtw_btcoex.c @@ -77,11 +77,6 @@ u8 rtw_btcoex_IsBtControlLps(struct adapter *padapter) return hal_btcoex_IsBtControlLps(padapter); } -u8 rtw_btcoex_RpwmVal(struct adapter *padapter) -{ - return hal_btcoex_RpwmVal(padapter); -} - u8 rtw_btcoex_LpsVal(struct adapter *padapter) { return hal_btcoex_LpsVal(padapter); diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c index 096f4729dd11..16ff688947cb 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c @@ -1045,7 +1045,7 @@ void rtl8723b_set_FwPwrMode_cmd(struct adapter *padapter, u8 psmode) if (psmode > 0) { if (rtw_btcoex_IsBtControlLps(padapter) == true) { - PowerState = rtw_btcoex_RpwmVal(padapter); + PowerState = hal_btcoex_RpwmVal(padapter); byte5 = rtw_btcoex_LpsVal(padapter); if ((rlbm == 2) && (byte5 & BIT(4))) { diff --git a/drivers/staging/rtl8723bs/include/rtw_btcoex.h b/drivers/staging/rtl8723bs/include/rtw_btcoex.h index 9a020bdc5be3..d8897a7ddfd4 100644 --- a/drivers/staging/rtl8723bs/include/rtw_btcoex.h +++ b/drivers/staging/rtl8723bs/include/rtw_btcoex.h @@ -24,7 +24,6 @@ u8 rtw_btcoex_IsBtDisabled(struct adapter *); void rtw_btcoex_Handler(struct adapter *); s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *); u8 rtw_btcoex_IsBtControlLps(struct adapter *); -u8 rtw_btcoex_RpwmVal(struct adapter *); u8 rtw_btcoex_LpsVal(struct adapter *); void rtw_btcoex_SetBTCoexist(struct adapter *, u8 bBtExist); void rtw_btcoex_SetChipType(struct adapter *, u8 chipType); |