summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-01-08 19:28:58 +0100
committerMarcel Holtmann <marcel@holtmann.org>2016-02-23 20:29:35 +0100
commit6d5d2ee63cee7025badda3b74ae2ef7ab097acfa (patch)
tree84d89e34753cdd8e2a00dabb73eb6c6e3d1896d6 /include/net/bluetooth
parenta30a9ea6e21b495372aff549f3dfd63198bd1f45 (diff)
downloadlinux-6d5d2ee63cee7025badda3b74ae2ef7ab097acfa.tar.gz
linux-6d5d2ee63cee7025badda3b74ae2ef7ab097acfa.tar.bz2
linux-6d5d2ee63cee7025badda3b74ae2ef7ab097acfa.zip
Bluetooth: add LED trigger for indicating HCI is powered up
Add support for LED triggers to the Bluetooth subsystem and add kernel config symbol BT_LEDS for it. For now one trigger for indicating "HCI is powered up" is supported. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index d4f82edb5cff..dc71473462ac 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -25,6 +25,7 @@
#ifndef __HCI_CORE_H
#define __HCI_CORE_H
+#include <linux/leds.h>
#include <net/bluetooth/hci.h>
#include <net/bluetooth/hci_sock.h>
@@ -396,6 +397,8 @@ struct hci_dev {
struct delayed_work rpa_expired;
bdaddr_t rpa;
+ struct led_trigger *power_led;
+
int (*open)(struct hci_dev *hdev);
int (*close)(struct hci_dev *hdev);
int (*flush)(struct hci_dev *hdev);