mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
![Seth Forshee](/assets/img/avatar_default.png)
Add functions to allow other modules to enable or disable apple_bl. This will be used by the gmux driver to disable apple_bl when the gmux is present, as it is a better and more reliable option for brightness control. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
26 lines
411 B
C
26 lines
411 B
C
/*
|
|
* apple_bl exported symbols
|
|
*/
|
|
|
|
#ifndef _LINUX_APPLE_BL_H
|
|
#define _LINUX_APPLE_BL_H
|
|
|
|
#ifdef CONFIG_BACKLIGHT_APPLE
|
|
|
|
extern int apple_bl_register(void);
|
|
extern void apple_bl_unregister(void);
|
|
|
|
#else /* !CONFIG_BACKLIGHT_APPLE */
|
|
|
|
static inline int apple_bl_register(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void apple_bl_unregister(void)
|
|
{
|
|
}
|
|
|
|
#endif /* !CONFIG_BACKLIGHT_APPLE */
|
|
|
|
#endif /* _LINUX_APPLE_BL_H */
|