leds.h 700 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2015, Heiner Kallweit <hkallweit1@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #if IS_ENABLED(CONFIG_BT_LEDS)
  9. void hci_leds_update_powered(struct hci_dev *hdev, bool enabled);
  10. void hci_leds_init(struct hci_dev *hdev);
  11. void bt_leds_init(void);
  12. void bt_leds_cleanup(void);
  13. #else
  14. static inline void hci_leds_update_powered(struct hci_dev *hdev,
  15. bool enabled) {}
  16. static inline void hci_leds_init(struct hci_dev *hdev) {}
  17. static inline void bt_leds_init(void) {}
  18. static inline void bt_leds_cleanup(void) {}
  19. #endif