Re: [PATCH v4 15/20] backlight: gpio_backlight: simplify update_status()

2020-07-08 Thread Daniel Thompson
On Fri, Jul 03, 2020 at 08:45:41PM +0200, Sam Ravnborg wrote: > 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 Ra

[PATCH v4 15/20] backlight: gpio_backlight: simplify update_status()

2020-07-03 Thread Sam Ravnborg
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 Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han --- drivers/v