mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Chris Wilson <[email protected]> Cc: David Airlie <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Ben Skeggs <[email protected]> Cc: Zhang Rui <[email protected]> Cc: Len Brown <[email protected]> Cc: Jesse Barnes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ccd7510fd8
commit
bb7ca747f8
59 changed files with 111 additions and 2 deletions
|
|
@ -163,6 +163,7 @@ void __init pmu_backlight_init()
|
|||
snprintf(name, sizeof(name), "pmubl");
|
||||
|
||||
memset(&props, 0, sizeof(struct backlight_properties));
|
||||
props.type = BACKLIGHT_PLATFORM;
|
||||
props.max_brightness = FB_BACKLIGHT_LEVELS - 1;
|
||||
bd = backlight_device_register(name, NULL, NULL, &pmu_backlight_data,
|
||||
&props);
|
||||
|
|
|
|||
Loading…
Reference in a new issue