aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/leds.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-01-25 14:46:21 -0500
committerMarcel Holtmann <marcel@holtmann.org>2016-02-23 14:29:36 -0500
commitb6e402fc84a76c0238b64de497920aeeaa495026 (patch)
treeb6ade31ae4948d2b9a9a8e615ba76a2a9a608128 /net/bluetooth/leds.h
parentd2ee9c2ec659cfab715568d2d9837f7ff67402fa (diff)
Bluetooth: Use managed version of led_trigger_register in LED trigger
Recently a managed version of led_trigger_register was introduced. Using devm_led_trigger_register allows to simplify the LED trigger code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/leds.h')
-rw-r--r--net/bluetooth/leds.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/leds.h b/net/bluetooth/leds.h
index 068261a4e12c..a9c4d6ea01cf 100644
--- a/net/bluetooth/leds.h
+++ b/net/bluetooth/leds.h
@@ -9,10 +9,8 @@
9#if IS_ENABLED(CONFIG_BT_LEDS) 9#if IS_ENABLED(CONFIG_BT_LEDS)
10void hci_leds_update_powered(struct hci_dev *hdev, bool enabled); 10void hci_leds_update_powered(struct hci_dev *hdev, bool enabled);
11void hci_leds_init(struct hci_dev *hdev); 11void hci_leds_init(struct hci_dev *hdev);
12void hci_leds_exit(struct hci_dev *hdev);
13#else 12#else
14static inline void hci_leds_update_powered(struct hci_dev *hdev, 13static inline void hci_leds_update_powered(struct hci_dev *hdev,
15 bool enabled) {} 14 bool enabled) {}
16static inline void hci_leds_init(struct hci_dev *hdev) {} 15static inline void hci_leds_init(struct hci_dev *hdev) {}
17static inline void hci_leds_exit(struct hci_dev *hdev) {}
18#endif 16#endif