]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
backlight: ktd253: Bring up in a known state
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Jan 2021 21:32:00 +0000 (22:32 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 9 Feb 2021 14:09:21 +0000 (14:09 +0000)
commit57e0d7b7f8663d0a3a5facc83c445ffc9802ad65
tree37ede321cad8c626960dacfee1c0598923c4dcf2
parent4a98e5ef88f8a7a9fd42e71b018d3070662f8a2a
backlight: ktd253: Bring up in a known state

The KTD253 backlight might already be on when the driver
is probed: then we don't really know what the current
ratio is and all light intensity settings will be off
relative to what it was at boot.

To fix this, bring up the backlight OFF then move it to
the default backlight from there so we know the state.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/ktd253-backlight.c