backlight: gpio_backlight: Simplify update_status()
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 Jul 2020 08:07:39 +0000 (10:07 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 20 Jul 2020 09:27:05 +0000 (10:27 +0100)
commitde7b490cdfe46e34e3eb567019b4e3b3747b5c0b
tree1126fa018b078b770743e83419af90d7a471d45a
parent24d34617c24f9d41953f76f2fbf282334584f5db
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>
drivers/video/backlight/gpio_backlight.c