Re: [PATCH v4 12/20] backlight: introduce backlight_get_brightness()

2020-07-08 Thread Daniel Thompson
On Fri, Jul 03, 2020 at 08:45:38PM +0200, Sam Ravnborg wrote: > Based on an idea from Emil Velikov > add a helper that checks backlight_is_blank() and return 0 as brightness > if display is blank or the property value if not. > > This allows us to simplify the update_status() implementation > in

[PATCH v4 12/20] backlight: introduce backlight_get_brightness()

2020-07-03 Thread Sam Ravnborg
Based on an idea from Emil Velikov add a helper that checks backlight_is_blank() and return 0 as brightness if display is blank or the property value if not. This allows us to simplify the update_status() implementation in most of the backlight drivers. Signed-off-by: Sam Ravnborg Cc: Emil Veli