]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: pwm_bl: Move the checks for initial power state to a separate function
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 22 Nov 2016 13:41:22 +0000 (15:41 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 4 Jan 2017 11:37:38 +0000 (11:37 +0000)
commita96802e1938f0784920af86bbcfecd3b80439b1f
treebbee1fba762af8ce5a7e4a1de8f9cd5fcf8e0e6f
parentf07b1ca78a02fdf62b7b171c5a9b9079852c392d
backlight: pwm_bl: Move the checks for initial power state to a separate function

Move the checks to select the initial state for the backlight to a new
function and document the checks we are doing.

With the separate function it is going to be easier to fix or improve the
initial power state configuration later and it is easier to read the code.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c