backlight: Use backlight_get_brightness() throughout
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 Jul 2020 08:07:41 +0000 (10:07 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 20 Jul 2020 09:27:06 +0000 (10:27 +0100)
commit51d53e5b06b8e75d02a17bfe678e7be7554a2322
tree890ce583f0e0b89cecec269aae786e1b4b7e841b
parenta00a5feb1e96ff55c24131472db53dc56cc7570b
backlight: Use backlight_get_brightness() throughout

Introduce the backlight_get_brightness() helper in all
video/backlight/* drivers. This simplifies the code and align the
implementation of the update_status() operation across the different
backlight drivers.

Some of the drivers gains a little extra functionality by the change
as they now respect the fb_blank() ioctl.

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>
19 files changed:
drivers/video/backlight/88pm860x_bl.c
drivers/video/backlight/adp5520_bl.c
drivers/video/backlight/adp8860_bl.c
drivers/video/backlight/adp8870_bl.c
drivers/video/backlight/bd6107.c
drivers/video/backlight/corgi_lcd.c
drivers/video/backlight/da903x_bl.c
drivers/video/backlight/ep93xx_bl.c
drivers/video/backlight/hp680_bl.c
drivers/video/backlight/kb3886_bl.c
drivers/video/backlight/led_bl.c
drivers/video/backlight/lm3533_bl.c
drivers/video/backlight/locomolcd.c
drivers/video/backlight/lv5207lp.c
drivers/video/backlight/max8925_bl.c
drivers/video/backlight/pwm_bl.c
drivers/video/backlight/qcom-wled.c
drivers/video/backlight/tps65217_bl.c
drivers/video/backlight/wm831x_bl.c