]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtlwifi: rtl8822be: Remove functions
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Tue, 2 Apr 2019 08:42:26 +0000 (14:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2019 17:51:06 +0000 (19:51 +0200)
Remove functions _rtl8822be_set_fw_ps_rf_on and
rtl8822be_fw_clk_off_timer_callback as they do not appear in the results
of `git grep` and the driver can be compiled without them.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/rtl8822be/hw.c
drivers/staging/rtlwifi/rtl8822be/hw.h

index 88ba5b2fea6acdb47863ba959f61eb05318f75a7..dac22c21f821e9cf0ff9ded2b55f823c57bddb72 100644 (file)
@@ -219,21 +219,6 @@ static void _rtl8822be_set_fw_ps_rf_on(struct ieee80211_hw *hw)
        _rtl8822be_set_fw_clock_on(hw, rpwm_val, true);
 }
 
-static void _rtl8822be_set_fw_ps_rf_off_low_power(struct ieee80211_hw *hw)
-{
-       u8 rpwm_val = 0;
-
-       rpwm_val |= FW_PS_STATE_RF_OFF_LOW_PWR;
-       _rtl8822be_set_fw_clock_off(hw, rpwm_val);
-}
-
-void rtl8822be_fw_clk_off_timer_callback(unsigned long data)
-{
-       struct ieee80211_hw *hw = (struct ieee80211_hw *)data;
-
-       _rtl8822be_set_fw_ps_rf_off_low_power(hw);
-}
-
 static void _rtl8822be_fwlps_leave(struct ieee80211_hw *hw)
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
index cf3536113f0689b42cc41fade0f899bbc4793ad1..0e4decf64aa6ab716a911a8ddc5561bf19af91aa 100644 (file)
@@ -51,5 +51,4 @@ void rtl8822be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
 void rtl8822be_bt_reg_init(struct ieee80211_hw *hw);
 void rtl8822be_suspend(struct ieee80211_hw *hw);
 void rtl8822be_resume(struct ieee80211_hw *hw);
-void rtl8822be_fw_clk_off_timer_callback(unsigned long data);
 #endif