Bluetooth: Add combined LED trigger for controller power
Instead of just having a LED trigger for power on a specific controller, this adds the LED trigger "bluetooth-power" that combines the power states of all controllers into a single trigger. This simplifies the trigger selection and also supports multiple controllers per host system via a single LED. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
@@ -7,10 +7,20 @@
|
||||
*/
|
||||
|
||||
#if IS_ENABLED(CONFIG_BT_LEDS)
|
||||
|
||||
void hci_leds_update_powered(struct hci_dev *hdev, bool enabled);
|
||||
void hci_leds_init(struct hci_dev *hdev);
|
||||
|
||||
void bt_leds_init(void);
|
||||
void bt_leds_cleanup(void);
|
||||
|
||||
#else
|
||||
|
||||
static inline void hci_leds_update_powered(struct hci_dev *hdev,
|
||||
bool enabled) {}
|
||||
static inline void hci_leds_init(struct hci_dev *hdev) {}
|
||||
|
||||
static inline void bt_leds_init(void) {}
|
||||
static inline void bt_leds_cleanup(void) {}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user