pwm-backlight: Track enable state
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2013 16:01:02 +0000 (18:01 +0200)
committer黄涛 <huangtao@rock-chips.com>
Tue, 25 Feb 2014 08:57:13 +0000 (16:57 +0800)
commit2aaec8ff6e27cc061f1fcef30d21e83397220b2e
treeb9883bbb89d8c2a57cae7f097215e0ca4163052d
parent497240639a81d956700342ba153d17f3424a719e
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