Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2015, Heiner Kallweit <hkallweit1@gmail.com> |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #if IS_ENABLED(CONFIG_BT_LEDS) |
Marcel Holtmann | e64c97b | 2016-07-21 14:12:41 +0200 | [diff] [blame] | 7 | |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 8 | void hci_leds_update_powered(struct hci_dev *hdev, bool enabled); |
| 9 | void hci_leds_init(struct hci_dev *hdev); |
Marcel Holtmann | e64c97b | 2016-07-21 14:12:41 +0200 | [diff] [blame] | 10 | |
| 11 | void bt_leds_init(void); |
| 12 | void bt_leds_cleanup(void); |
| 13 | |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 14 | #else |
Marcel Holtmann | e64c97b | 2016-07-21 14:12:41 +0200 | [diff] [blame] | 15 | |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 16 | static inline void hci_leds_update_powered(struct hci_dev *hdev, |
| 17 | bool enabled) {} |
| 18 | static inline void hci_leds_init(struct hci_dev *hdev) {} |
Marcel Holtmann | e64c97b | 2016-07-21 14:12:41 +0200 | [diff] [blame] | 19 | |
| 20 | static inline void bt_leds_init(void) {} |
| 21 | static inline void bt_leds_cleanup(void) {} |
| 22 | |
Heiner Kallweit | 6d5d2ee | 2016-01-08 19:28:58 +0100 | [diff] [blame] | 23 | #endif |