commit | 2144d00ed0db28c764513080f95e4c49ea9133b0 | [log] [tgz] |
---|---|---|
author | Sam Ravnborg <sam@ravnborg.org> | Sun Jul 19 10:07:36 2020 +0200 |
committer | Lee Jones <lee.jones@linaro.org> | Mon Jul 20 10:27:02 2020 +0100 |
tree | 5168f25f5c6013e7bf5941b612a9a815a1bcb92a | |
parent | 5ab4246cfc6f62cd0eb4c95a029e6fa7f29b3984 [diff] |
backlight: backlight: Introduce backlight_get_brightness() Based on an idea from Emil Velikov, add a helper that checks backlight_is_blank() and return 0 as brightness if display is blank or the property value if not. This allows us to simplify the update_status() implementation in most of the backlight drivers. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>