diff options
| author | Matthew Garrett <mjg@redhat.com> | 2011-03-22 19:30:21 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:43:59 -0400 |
| commit | bb7ca747f8d6243b3943c5b133048652020f4a50 (patch) | |
| tree | b40e879a7b26e3763aea2af2d4dd9079483de11e /include/linux | |
| parent | ccd7510fd8dea5b4b2af87fb2aef2ebd6b23b76b (diff) | |
backlight: add backlight type
There may be multiple ways of controlling the backlight on a given
machine. Allow drivers to expose the type of interface they are
providing, making it possible for userspace to make appropriate policy
decisions.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Airlie <airlied@linux.ie>
Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/backlight.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h index 4a3d52e545e1..5ffc6dda4675 100644 --- a/include/linux/backlight.h +++ b/include/linux/backlight.h | |||
| @@ -32,6 +32,13 @@ enum backlight_update_reason { | |||
| 32 | BACKLIGHT_UPDATE_SYSFS, | 32 | BACKLIGHT_UPDATE_SYSFS, |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | enum backlight_type { | ||
| 36 | BACKLIGHT_RAW = 1, | ||
| 37 | BACKLIGHT_PLATFORM, | ||
| 38 | BACKLIGHT_FIRMWARE, | ||
| 39 | BACKLIGHT_TYPE_MAX, | ||
| 40 | }; | ||
| 41 | |||
| 35 | struct backlight_device; | 42 | struct backlight_device; |
| 36 | struct fb_info; | 43 | struct fb_info; |
| 37 | 44 | ||
| @@ -62,6 +69,8 @@ struct backlight_properties { | |||
| 62 | /* FB Blanking active? (values as for power) */ | 69 | /* FB Blanking active? (values as for power) */ |
| 63 | /* Due to be removed, please use (state & BL_CORE_FBBLANK) */ | 70 | /* Due to be removed, please use (state & BL_CORE_FBBLANK) */ |
| 64 | int fb_blank; | 71 | int fb_blank; |
| 72 | /* Backlight type */ | ||
| 73 | enum backlight_type type; | ||
| 65 | /* Flags used to signal drivers of state changes */ | 74 | /* Flags used to signal drivers of state changes */ |
| 66 | /* Upper 4 bits are reserved for driver internal use */ | 75 | /* Upper 4 bits are reserved for driver internal use */ |
| 67 | unsigned int state; | 76 | unsigned int state; |
