From: Shingo Nakao Date: Tue, 2 Jul 2013 12:15:54 +0000 (+0200) Subject: backlight: lp855x: set zero brightness at FBBLANK X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f0a511f4a227c58c45b65c10fd2b85586360f67;p=linux-beck.git 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 Cc: Milo Kim Cc: Richard Purdie Signed-off-by: Oskar Andero Acked-by: Milo Kim Acked-by: Jingoo Han Signed-off-by: Tomi Valkeinen --- 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) {