diff options
author | 2021-09-07 14:47:51 +0200 | |
---|---|---|
committer | 2021-09-23 10:48:00 +0100 | |
commit | 563edf85ce18a90dd0a7b39e279a691d937205f6 (patch) | |
tree | 488fbe262c7625113baa8425b2d86c9a82f9cc04 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | video: backlight: Drop maximum brightness override for brightness zero (diff) | |
download | wireguard-linux-563edf85ce18a90dd0a7b39e279a691d937205f6.tar.xz wireguard-linux-563edf85ce18a90dd0a7b39e279a691d937205f6.zip |
backlight: Propagate errors from get_brightness()
backlight.h documents "struct backlight_ops->get_brightness()" to return
a negative errno on failure.
So far these errors have not been handled in the backlight core.
This leads to negative values being exposed through sysfs although only
positive values are documented to be reported.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions