summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/lp855x_bl.c
diff options
context:
space:
mode:
authorShingo Nakao <shingo.x.nakao@sonymobile.com>2013-07-02 14:15:54 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-07-26 11:44:51 +0300
commit9f0a511f4a227c58c45b65c10fd2b85586360f67 (patch)
treefae389a480adc67d5f86148f0b409fa4a4278cf5 /drivers/video/backlight/lp855x_bl.c
parent787316b411ae9190b6224796034f10080a098fc9 (diff)
downloadtalos-op-linux-9f0a511f4a227c58c45b65c10fd2b85586360f67.tar.gz
talos-op-linux-9f0a511f4a227c58c45b65c10fd2b85586360f67.zip
backlight: lp855x: set zero brightness at FBBLANK
When backlight turns on early from display, a white line can be seen on the screen. Therefore make sure backlight is off when we are under an fb blank event. Signed-off-by: Shingo Nakao <shingo.x.nakao@sonymobile.com> Cc: Milo Kim <milo.kim@ti.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com> Acked-by: Milo Kim <milo.kim@ti.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/backlight/lp855x_bl.c')
-rw-r--r--drivers/video/backlight/lp855x_bl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c
index a0e1e02bdc2e..c0b41f13bd4a 100644
--- a/drivers/video/backlight/lp855x_bl.c
+++ b/drivers/video/backlight/lp855x_bl.c
@@ -246,7 +246,7 @@ static int lp855x_bl_update_status(struct backlight_device *bl)
{
struct lp855x *lp = bl_get_data(bl);
- if (bl->props.state & BL_CORE_SUSPENDED)
+ if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK))
bl->props.brightness = 0;
if (lp->mode == PWM_BASED) {
OpenPOWER on IntegriCloud