summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8821ae
diff options
context:
space:
mode:
authorKonrad Zapalowicz <bergo.torino@gmail.com>2014-05-24 17:23:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-25 11:11:18 -0700
commit65aa61c03646377cfaba7490eeff1c364f8cf9a2 (patch)
treefa1b6d4a5a27bd441a8e0e5c8be2adfa2f0157bc /drivers/staging/rtl8821ae
parent8b596f5993860781081ac9d8f4d46c35036e4697 (diff)
downloadblackbird-obmc-linux-65aa61c03646377cfaba7490eeff1c364f8cf9a2.tar.gz
blackbird-obmc-linux-65aa61c03646377cfaba7490eeff1c364f8cf9a2.zip
staging: rtl8821ae: deal with unused functions in halbtc8723b2ant.c
This commit fixes the compiler -Wunused-function warning. It was enough to put #define around them to supress this warning. One was a special case because it's usage was commented-out therefore, as I did not want to remove it completely, I disabled it with #if 0 Conditionally compiled symbols halbtc8723b2ant_monitor_bt_enable_disable halbtc8723b2ant_set_bt_auto_report halbtc8723b2ant_bt_auto_report Disabled symbols halbtc8723b2ant_adc_backoff halbtc8723b2ant_set_adc_backoff 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/halbtc8723b2ant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
index f67b375dab11..da3f62da4e40 100644
--- a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
+++ b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
@@ -247,6 +247,7 @@ static u8 halbtc8723b2ant_wifi_rssi_state(struct btc_coexist *btcoexist,
return wifi_rssi_state;
}
+#if (BT_AUTO_REPORT_ONLY_8723B_2ANT == 0)
static void halbtc8723b2ant_monitor_bt_enable_disable(
struct btc_coexist *btcoexist)
{
@@ -300,6 +301,7 @@ static void halbtc8723b2ant_monitor_bt_enable_disable(
}
}
}
+#endif
static void halbtc8723b2ant_monitor_bt_ctr(struct btc_coexist *btcoexist)
{
@@ -734,6 +736,7 @@ static void halbtc8723b2ant_dec_bt_pwr(struct btc_coexist *btcoexist,
coex_dm->pre_dec_bt_pwr = coex_dm->cur_dec_bt_pwr;
}
+#if (BT_AUTO_REPORT_ONLY_8723B_2ANT == 0)
static void halbtc8723b2ant_set_bt_auto_report(struct btc_coexist *btcoexist,
bool enable_auto_report)
{
@@ -775,6 +778,7 @@ static void halbtc8723b2ant_bt_auto_report(struct btc_coexist *btcoexist,
coex_dm->pre_bt_auto_report = coex_dm->cur_bt_auto_report;
}
+#endif
static void halbtc8723b2ant_fw_dac_swing_lvl(struct btc_coexist *btcoexist,
bool force_exec, u8 fw_dac_swing_lvl)
@@ -950,6 +954,7 @@ static void halbtc8723b2ant_dac_swing(struct btc_coexist *btcoexist,
coex_dm->pre_dac_swing_lvl = coex_dm->cur_dac_swing_lvl;
}
+#if 0
static void halbtc8723b2ant_set_adc_backoff(struct btc_coexist *btcoexist,
bool adc_backoff)
{
@@ -985,6 +990,7 @@ static void halbtc8723b2ant_adc_backoff(struct btc_coexist *btcoexist,
coex_dm->pre_adc_back_off = coex_dm->cur_adc_back_off;
}
+#endif
static void halbtc8723b2ant_set_agc_table(struct btc_coexist *btcoexist,
bool agc_table_en)
OpenPOWER on IntegriCloud