Skip to contentSkip to conversation

Bluetooth: Put led_trigger field behind CONFIG_BT_LEDS

PATCH In review Marcel Holtmann 2 participants 2 messages Jul 21, 2016 – Jul 23, 2016

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/2 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.

---
 include/net/bluetooth/hci_core.h | 2 ++
 1 file changed, 2 insertions(+)
include/net/bluetooth/hci_core.h +2 -0
index ee7fc47680a1..b8d43bd9c71b 100644
@@ -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);
Signature · 1 line
2.7.4
#1 lore raw

Hi Marcel,

Quoted 7 lines · Marcel Holtmann

The led_trigger field in hci_dev should be conditional based on if CONFIG_BT_LEDS is set or not.

---
 include/net/bluetooth/hci_core.h | 2 ++
 1 file changed, 2 insertions(+)

Both patches have been applied to bluetooth-next. Thanks.

Johan