diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2012-03-16 15:41:21 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-03-22 09:31:55 -0400 |
commit | 83e72dd97a25a831ff270ce4437416943a1e4b36 (patch) | |
tree | 9eeaaa019cc92527469d2976238c1443eadeab21 /include/linux/apple_bl.h | |
parent | f11f999e989061952f1a27bd0c49645a46d13173 (diff) |
apple_bl: Add register/unregister functions
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>
Diffstat (limited to 'include/linux/apple_bl.h')
-rw-r--r-- | include/linux/apple_bl.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/apple_bl.h b/include/linux/apple_bl.h new file mode 100644 index 000000000000..47bedc0eee69 --- /dev/null +++ b/include/linux/apple_bl.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * apple_bl exported symbols | ||
3 | */ | ||
4 | |||
5 | #ifndef _LINUX_APPLE_BL_H | ||
6 | #define _LINUX_APPLE_BL_H | ||
7 | |||
8 | #ifdef CONFIG_BACKLIGHT_APPLE | ||
9 | |||
10 | extern int apple_bl_register(void); | ||
11 | extern void apple_bl_unregister(void); | ||
12 | |||
13 | #else /* !CONFIG_BACKLIGHT_APPLE */ | ||
14 | |||
15 | static inline int apple_bl_register(void) | ||
16 | { | ||
17 | return 0; | ||
18 | } | ||
19 | |||
20 | static inline void apple_bl_unregister(void) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | #endif /* !CONFIG_BACKLIGHT_APPLE */ | ||
25 | |||
26 | #endif /* _LINUX_APPLE_BL_H */ | ||