diff options
author | Heiner Kallweit | 2016-01-25 20:46:21 +0100 |
---|---|---|
committer | Marcel Holtmann | 2016-02-23 20:29:36 +0100 |
commit | b6e402fc84a76c0238b64de497920aeeaa495026 (patch) | |
tree | b6ade31ae4948d2b9a9a8e615ba76a2a9a608128 /net/bluetooth/leds.h | |
parent | d2ee9c2ec659cfab715568d2d9837f7ff67402fa (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.h | 2 |
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 @@ #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 hci_leds_exit(struct hci_dev *hdev); #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 hci_leds_exit(struct hci_dev *hdev) {} #endif |