diff options
author | Konrad Zapalowicz <bergo.torino@gmail.com> | 2014-05-24 17:23:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-25 11:11:18 -0700 |
commit | 45475dc312d586744baabf8c5a330878faaf55ba (patch) | |
tree | 8e29181cf79d6de163a1d84166c874e9a2322822 /drivers/staging/rtl8821ae | |
parent | 0eec210abcf009ceecf73d8ea87420f7278f8654 (diff) | |
download | linux-45475dc312d586744baabf8c5a330878faaf55ba.tar.gz linux-45475dc312d586744baabf8c5a330878faaf55ba.tar.bz2 linux-45475dc312d586744baabf8c5a330878faaf55ba.zip |
staging: rtl8821ae: deal with unused functions in halbtcoutsrc.c
This commit fixes the compiler -Wunused-function warning. Several
functions had to be removed.
Removed symbols
halbtc_is_hw_mailbox_exist
halbtc_set_macreg
halbtc_get_macreg
halbtc_under_ips
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8821ae')
-rw-r--r-- | drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c b/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c index 248ec12fa003..01f5a74028a0 100644 --- a/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c +++ b/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c @@ -121,11 +121,6 @@ static void halbtc_dbg_init(void) 0; } -static bool halbtc_is_hw_mailbox_exist(struct btc_coexist *btcoexist) -{ - return true; -} - static bool halbtc_is_bt40(struct rtl_priv *adapter) { struct rtl_priv *rtlpriv = adapter; @@ -610,26 +605,6 @@ static void halbtc_write_4byte(void *bt_context, u32 reg_addr, u32 data) rtl_write_dword(rtlpriv, reg_addr, data); } - -static void halbtc_set_macreg(void *bt_context, u32 reg_addr, - u32 bit_mask, u32 data) -{ - struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; - struct rtl_priv *rtlpriv = btcoexist->adapter; - - rtl_set_bbreg(rtlpriv->mac80211.hw, reg_addr, bit_mask, data); -} - - -static u32 halbtc_get_macreg(void *bt_context, u32 reg_addr, u32 bit_mask) -{ - struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; - struct rtl_priv *rtlpriv = btcoexist->adapter; - - return rtl_get_bbreg(rtlpriv->mac80211.hw, reg_addr, bit_mask); -} - - static void halbtc_set_bbreg(void *bt_context, u32 reg_addr, u32 bit_mask, u32 data) { @@ -700,25 +675,6 @@ static void halbtc_display_dbg_msg(void *bt_context, u8 disp_type) } } -static bool halbtc_under_ips(struct btc_coexist *btcoexist) -{ - struct rtl_priv *rtlpriv = btcoexist->adapter; - struct rtl_ps_ctl *ppsc = rtl_psc(rtlpriv); - enum rf_pwrstate rtstate; - - if (ppsc->b_inactiveps) { - rtstate = ppsc->rfpwr_state; - - if (rtstate != ERFON && - ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { - - return true; - } - } - - return false; -} - /***************************************************************** * Extern functions called by other module *****************************************************************/ |