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

Daniel Thompson daniel.thompson at linaro.org
Wed Jul 8 10:27:54 UTC 2020


On Fri, Jul 03, 2020 at 08:45:38PM +0200, Sam Ravnborg wrote:
> Based on an idea from Emil Velikov <emil.l.velikov at gmail.com>
> 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 <sam at ravnborg.org>
> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> Cc: Lee Jones <lee.jones at linaro.org>
> Cc: Daniel Thompson <daniel.thompson at linaro.org>
> Cc: Jingoo Han <jingoohan1 at gmail.com>

Reviewed-by: Daniel Thompson <daniel.thompson at linaro.org>


More information about the dri-devel mailing list