xref: /OK3568_Linux_fs/kernel/net/bluetooth/leds.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright 2015, Heiner Kallweit <hkallweit1@gmail.com>
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #if IS_ENABLED(CONFIG_BT_LEDS)
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun void hci_leds_update_powered(struct hci_dev *hdev, bool enabled);
9*4882a593Smuzhiyun void hci_leds_init(struct hci_dev *hdev);
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun void bt_leds_init(void);
12*4882a593Smuzhiyun void bt_leds_cleanup(void);
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #else
15*4882a593Smuzhiyun 
hci_leds_update_powered(struct hci_dev * hdev,bool enabled)16*4882a593Smuzhiyun static inline void hci_leds_update_powered(struct hci_dev *hdev,
17*4882a593Smuzhiyun 					   bool enabled) {}
hci_leds_init(struct hci_dev * hdev)18*4882a593Smuzhiyun static inline void hci_leds_init(struct hci_dev *hdev) {}
19*4882a593Smuzhiyun 
bt_leds_init(void)20*4882a593Smuzhiyun static inline void bt_leds_init(void) {}
bt_leds_cleanup(void)21*4882a593Smuzhiyun static inline void bt_leds_cleanup(void) {}
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #endif
24