Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522Ab3GBMQA (ORCPT ); Tue, 2 Jul 2013 08:16:00 -0400 Received: from seldrel01.sonyericsson.com ([212.209.106.2]:4710 "EHLO seldrel01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154Ab3GBMP6 (ORCPT ); Tue, 2 Jul 2013 08:15:58 -0400 From: Oskar Andero To: , CC: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Radovan Lekanovic , Shingo Nakao , Milo Kim , Richard Purdie , Oskar Andero Subject: [PATCH] backlight: lp855x: set zero brightness at FBBLANK Date: Tue, 2 Jul 2013 14:15:54 +0200 Message-ID: <1372767354-16499-1-git-send-email-oskar.andero@sonymobile.com> X-Mailer: git-send-email 1.8.1.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 35 From: Shingo Nakao 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 --- drivers/video/backlight/lp855x_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index a0e1e02..c0b41f1 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) { -- 1.8.1.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/