backlight: cr_bllcd: Introduce gpio-backlight semantics
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 Jul 2020 08:07:38 +0000 (10:07 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 20 Jul 2020 09:27:04 +0000 (10:27 +0100)
commit24d34617c24f9d41953f76f2fbf282334584f5db
treed14f7c8ffa955bdb2fede9dfa9f434d30f629788
parent5a09765ddedd34f176275c72ffbe567e428e2dfc
backlight: cr_bllcd: Introduce gpio-backlight semantics

cr_bllcd can turn backlight ON or OFF.

Fix semantitics so they equals what we know from gpio-backlight.

 brightness == 0   => backlight off
 brightness == 1   => backlight on

Use the backlight_get_brightness() helper to simplify the code.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/cr_bllcd.c