]> git.baikalelectronics.ru Git - kernel.git/commit
pwm-backlight: Track enable state
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2013 16:01:02 +0000 (18:01 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Oct 2013 07:05:57 +0000 (09:05 +0200)
commit824609a093033096ab439039a967dc51e4502499
treef7afc5b092a60ff9e7b7973f15ee9b550e9ab659
parent4457b676da3033933e38f1d2873fda5d78f4f3f8
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>
drivers/video/backlight/pwm_bl.c