LOCAL / net: rfkill: bcm: block unused function bt_lpm_wake()
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 16 Apr 2018 06:18:34 +0000 (15:18 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:55 +0000 (14:56 +0900)
The commit a59dded59516 ("LOCAL / net: rfkill: adapt to mainline
API/framework changes") blocks bluetooth low power mode feature
which requires bluetooth hci core modification but bt_lpm_wake()
function remains unused. Block the unused function to fix build
warning.

Change-Id: I91afca0435b1399d481d8d8b2130b83e8de7bba0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
net/rfkill/rfkill-bcm.c

index 75df25c..f4a7d8d 100644 (file)
@@ -66,6 +66,7 @@ static enum hrtimer_restart bt_lpm_sleep(struct hrtimer *htimer)
        return HRTIMER_NORESTART;
 }
 
+#if 0
 static void bt_lpm_wake(struct rfkill_bcm_data *rfkill)
 {
        struct hrtimer *htimer = &rfkill->timer.htimer;
@@ -76,6 +77,7 @@ static void bt_lpm_wake(struct rfkill_bcm_data *rfkill)
                gpiod_set_value(rfkill->wake_gpio, 1);
        hrtimer_start(htimer, rfkill->timer.sleep_delay, HRTIMER_MODE_REL);
 }
+#endif
 
 static int bt_lpm_init(struct rfkill_bcm_data *rfkill)
 {