pwm-backlight: Use new enable_gpio field
authorThierry Reding <treding@nvidia.com>
Fri, 30 Aug 2013 10:32:18 +0000 (12:32 +0200)
committer黄涛 <huangtao@rock-chips.com>
Tue, 25 Feb 2014 08:57:37 +0000 (16:57 +0800)
commitf419470e45ea4f32dbd2ac27ab0443fe6f251b2e
treeb2e6bad9b98905c37e69ac9a00985272391f15e4
parent4e9f3c94d979341b6adb5b73373eca6a375738aa
pwm-backlight: Use new enable_gpio field

Make use of the new enable_gpio field and allow it to be set from DT as
well. Now that all legacy users of platform data have been converted to
initialize this field to an invalid value, it is safe to use the field
from the driver.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
drivers/video/backlight/pwm_bl.c