apple_bl.h 498 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * apple_bl exported symbols
  4. */
  5. #ifndef _LINUX_APPLE_BL_H
  6. #define _LINUX_APPLE_BL_H
  7. #if defined(CONFIG_BACKLIGHT_APPLE) || defined(CONFIG_BACKLIGHT_APPLE_MODULE)
  8. extern int apple_bl_register(void);
  9. extern void apple_bl_unregister(void);
  10. #else /* !CONFIG_BACKLIGHT_APPLE */
  11. static inline int apple_bl_register(void)
  12. {
  13. return 0;
  14. }
  15. static inline void apple_bl_unregister(void)
  16. {
  17. }
  18. #endif /* !CONFIG_BACKLIGHT_APPLE */
  19. #endif /* _LINUX_APPLE_BL_H */