backlight: lp855x: set zero brightness at FBBLANK
authorShingo Nakao <shingo.x.nakao@sonymobile.com>
Tue, 2 Jul 2013 12:15:54 +0000 (14:15 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 26 Jul 2013 08:44:51 +0000 (11:44 +0300)
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>
drivers/video/backlight/lp855x_bl.c

index a0e1e02..c0b41f1 100644 (file)
@@ -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) {