projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e867e87
)
Bluetooth: Put led_trigger field behind CONFIG_BT_LEDS
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 21 Jul 2016 12:12:40 +0000
(14:12 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000
(20:19 +0200)
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 <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/hci_core.h
b/include/net/bluetooth/hci_core.h
index ee7fc47680a1a7a5dd9fd0d02124abffbb3a003b..b8d43bd9c71b817a47d9bc96115899d9dfa639b8 100644
(file)
--- 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);