From: Marek Vasut Date: Thu, 11 Nov 2010 22:05:26 +0000 (-0800) Subject: backlight: fix blanking for L4F00242T03 LCD X-Git-Tag: firefly_0821_release~7613^2~3466 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4dbdf8861a8ad83ef194f2c3a389a7b37c6f832e;p=firefly-linux-kernel-4.4.55.git backlight: fix blanking for L4F00242T03 LCD The LCD was turned on if the variable power was > 0, but that was incorrect. The LCD has to be turned on in NORMAL and UNBLANK case. Signed-off-by: Marek Vasut Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index 9093ef0fa869..c67801e57aaf 100644 --- a/drivers/video/backlight/l4f00242t03.c +++ b/drivers/video/backlight/l4f00242t03.c @@ -78,7 +78,7 @@ static int l4f00242t03_lcd_power_set(struct lcd_device *ld, int power) const u16 slpin = 0x10; const u16 disoff = 0x28; - if (power) { + if (power <= FB_BLANK_NORMAL) { if (priv->lcd_on) return 0;