pwm-backlight: Refactor backlight power on/off
authorThierry Reding <treding@nvidia.com>
Mon, 7 Oct 2013 09:32:02 +0000 (11:32 +0200)
committer黄涛 <huangtao@rock-chips.com>
Tue, 25 Feb 2014 08:56:58 +0000 (16:56 +0800)
commit497240639a81d956700342ba153d17f3424a719e
tree2e95f83d0c0f9422bd25fd5323b71a2e1892fe07
parent2412f1e6e172edaa74e047e3355b8cbdde3ae023
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