]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: lp855x: Don't clear level on suspend/blank
authorSean Paul <seanpaul@chromium.org>
Mon, 11 May 2015 20:32:05 +0000 (13:32 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2015 14:47:33 +0000 (15:47 +0100)
commitb9eba2c826831956d5c913f12afcb7ecef34e04b
tree0dc100b318d95ff504ebf3213bc157d05b6418b1
parent4ccec0d64e75b1a747f0771bc455b3d358f02b1e
backlight: lp855x: Don't clear level on suspend/blank

Don't clear the backlight level when we're going into suspend or
blanking. Instead, just temporarily set the level to 0 so we retain
the value when we resume.

Reported-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lp855x_bl.c