From: Marcel Holtmann Date: Thu, 21 Jul 2016 12:12:40 +0000 (+0200) Subject: Bluetooth: Put led_trigger field behind CONFIG_BT_LEDS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=53f863a66904542b03204f2b115d050b04c11ba5;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: Put led_trigger field behind CONFIG_BT_LEDS The led_trigger field in hci_dev should be conditional based on if CONFIG_BT_LEDS is set or not. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index ee7fc47680a1..b8d43bd9c71b 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -399,7 +399,9 @@ struct hci_dev { struct delayed_work rpa_expired; bdaddr_t rpa; +#if IS_ENABLED(CONFIG_BT_LEDS) struct led_trigger *power_led; +#endif int (*open)(struct hci_dev *hdev); int (*close)(struct hci_dev *hdev);