diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2020-07-19 11:07:39 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-07-20 12:27:05 +0300 |
commit | de7b490cdfe46e34e3eb567019b4e3b3747b5c0b (patch) | |
tree | 1126fa018b078b770743e83419af90d7a471d45a /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 24d34617c24f9d41953f76f2fbf282334584f5db (diff) | |
download | linux-de7b490cdfe46e34e3eb567019b4e3b3747b5c0b.tar.xz |
backlight: gpio_backlight: Simplify update_status()
Introduce the use of backlight_get_brightness() to simplify the
update_status() operation. With the simpler implementation drop the
gpio_backlight_get_next_brightness() helper as it was now a
one-liner.
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