diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2020-07-19 11:07:36 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-07-20 12:27:02 +0300 |
commit | 2144d00ed0db28c764513080f95e4c49ea9133b0 (patch) | |
tree | 5168f25f5c6013e7bf5941b612a9a815a1bcb92a /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 5ab4246cfc6f62cd0eb4c95a029e6fa7f29b3984 (diff) | |
download | linux-2144d00ed0db28c764513080f95e4c49ea9133b0.tar.xz |
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>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions