summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan-Hsuan Chuang <yhchuang@realtek.com>2019-10-02 10:31:21 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-10-02 07:33:43 +0300
commit5235d63640c60ad5384310bd88ce0a6d8f87179e (patch)
tree9f5ca63080fe7fe0f77fe37909cbf6ce257abac7
parent3d391c06d917a18f846aa2a0ab155cb6c92ca6ea (diff)
downloadlwn-5235d63640c60ad5384310bd88ce0a6d8f87179e.tar.gz
lwn-5235d63640c60ad5384310bd88ce0a6d8f87179e.zip
rtw88: remove unused lps state check helper
This is no more used, remove it. Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/realtek/rtw88/ps.c5
-rw-r--r--drivers/net/wireless/realtek/rtw88/ps.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/ps.c b/drivers/net/wireless/realtek/rtw88/ps.c
index a1541774cf0d..d57996e446fb 100644
--- a/drivers/net/wireless/realtek/rtw88/ps.c
+++ b/drivers/net/wireless/realtek/rtw88/ps.c
@@ -91,11 +91,6 @@ static void rtw_enter_lps_core(struct rtw_dev *rtwdev)
set_bit(RTW_FLAG_LEISURE_PS, rtwdev->flags);
}
-bool rtw_in_lps(struct rtw_dev *rtwdev)
-{
- return test_bit(RTW_FLAG_LEISURE_PS, rtwdev->flags);
-}
-
void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id)
{
struct rtw_lps_conf *conf = &rtwdev->lps_conf;
diff --git a/drivers/net/wireless/realtek/rtw88/ps.h b/drivers/net/wireless/realtek/rtw88/ps.h
index d2aae613bca4..5aed11b5c182 100644
--- a/drivers/net/wireless/realtek/rtw88/ps.h
+++ b/drivers/net/wireless/realtek/rtw88/ps.h
@@ -12,6 +12,5 @@ int rtw_leave_ips(struct rtw_dev *rtwdev);
void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id);
void rtw_leave_lps(struct rtw_dev *rtwdev);
-bool rtw_in_lps(struct rtw_dev *rtwdev);
#endif