]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: pwm_bl: Avoid backlight flicker when probed from DT
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 18 Nov 2015 17:12:25 +0000 (18:12 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Jan 2016 05:56:22 +0000 (05:56 +0000)
commit938f50f23395f59619b1b52038c370317559c8e9
tree02e7318028090532d74ba09bda5c353a0f3f3238
parent56178a1e8f49c730482d8b6e6ce044435304d2bb
backlight: pwm_bl: Avoid backlight flicker when probed from DT

If the driver is probed from the device tree, and there is a phandle
property set on it, and the enable GPIO is already configured as output,
and the backlight is currently disabled, keep it disabled.
If all these conditions are met, assume there will be some other driver
that can enable the backlight at the appropriate time.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c