pwm-backlight: Track enable state
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2013 16:01:02 +0000 (18:01 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Wed, 16 Apr 2014 13:58:17 +0000 (08:58 -0500)
commit8dd7bf5719f2a0e7b2179e2ae980a014f375e40a
treed96f4069d03d7c0445de22a6e6e55956b09c9250
parentf4fdade48676b2754b28fcd7d165136330cff68e
pwm-backlight: Track enable state

Follow up patches will add support for more complex means of powering
the backlight on and off such as using a regulator. To prevent calls to
the regulator API from becoming unbalanced, keep track of the enabled
state internally.

Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 97c38437115aa0c3fb2d50c488814b503ba529e0)
drivers/video/backlight/pwm_bl.c