]> 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)
commit2d81e4469bdc1386a6480886a8e4ca86e297b829
treef7afc5b092a60ff9e7b7973f15ee9b550e9ab659
parent245e91a4f664967a0a31ba34c063aafcec3426c2
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