diff options
author | 2020-07-19 10:07:36 +0200 | |
---|---|---|
committer | 2020-07-20 10:27:02 +0100 | |
commit | 2144d00ed0db28c764513080f95e4c49ea9133b0 (patch) | |
tree | 5168f25f5c6013e7bf5941b612a9a815a1bcb92a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | doc-rst: Wire-up Backlight kernel-doc documentation (diff) | |
download | wireguard-linux-2144d00ed0db28c764513080f95e4c49ea9133b0.tar.xz wireguard-linux-2144d00ed0db28c764513080f95e4c49ea9133b0.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions