[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1440697275-4469-1-git-send-email-bjorn.andersson@sonymobile.com>
Date: Thu, 27 Aug 2015 10:41:15 -0700
From: Bjorn Andersson <bjorn.andersson@...ymobile.com>
To: Milo Kim <milo.kim@...com>, Jingoo Han <jingoohan1@...il.com>,
Lee Jones <lee.jones@...aro.org>,
Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>,
Tomi Valkeinen <tomi.valkeinen@...com>
CC: <linux-fbdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Werner Johansson <werner.johansson@...ymobile.com>
Subject: [PATCH] backlight: lp855x: Make sure props struct is zeroed
From: Werner Johansson <werner.johansson@...ymobile.com>
The driver occasionally got stuck in suspend mode or other strange
states as those parts of the props struct were never initialized.
Signed-off-by: Werner Johansson <werner.johansson@...ymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@...ymobile.com>
---
drivers/video/backlight/lp855x_bl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c
index 88116b493f3b..0a7f88ce1ab0 100644
--- a/drivers/video/backlight/lp855x_bl.c
+++ b/drivers/video/backlight/lp855x_bl.c
@@ -282,6 +282,7 @@ static int lp855x_backlight_register(struct lp855x *lp)
struct lp855x_platform_data *pdata = lp->pdata;
const char *name = pdata->name ? : DEFAULT_BL_NAME;
+ memset(&props, 0, sizeof(props));
props.type = BACKLIGHT_PLATFORM;
props.max_brightness = MAX_BRIGHTNESS;
--
1.8.2.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists