]> git.baikalelectronics.ru Git - kernel.git/commit
pwm-backlight: Refactor backlight power on/off
authorThierry Reding <treding@nvidia.com>
Mon, 7 Oct 2013 09:32:02 +0000 (11:32 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Oct 2013 07:05:56 +0000 (09:05 +0200)
commit245e91a4f664967a0a31ba34c063aafcec3426c2
tree88a702d8c151b788eab8faeb9297d058ed9a628c
parentee4df5fdb5da98accd6949e65208e14b989b5376
pwm-backlight: Refactor backlight power on/off

In preparation for adding an optional regulator and enable GPIO to the
driver, split the power on and power off sequences into separate
functions to reduce code duplication at the multiple call sites.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/video/backlight/pwm_bl.c