pwm-backlight: Use new enable_gpio field
authorThierry Reding <treding@nvidia.com>
Fri, 30 Aug 2013 10:32:18 +0000 (12:32 +0200)
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 28 Mar 2018 16:39:54 +0000 (18:39 +0200)
commit8431712fa81721de1e675d98f19d2de9ddc96195
treef80db77e496f791633ed653bc69f0583e79f88b5
parentc3fb2cec492d1bd67c9204fc45f1e517e2fa4f53
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>
(cherry picked from commit 8265b2e4e62632b01f998095d1bbda4d281629fe)
Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
drivers/video/backlight/pwm_bl.c