diff options
author | Werner Johansson <werner.johansson@sonymobile.com> | 2015-08-27 13:41:15 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-10-05 08:47:42 -0400 |
commit | 9f7898f3ca71744ef834048dc78ad4a21db4ac64 (patch) | |
tree | 58d30ff608cde720a538fc4ecf19a54d5015aab7 | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) |
backlight: lp855x: Make sure props struct is zeroed
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@sonymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/video/backlight/lp855x_bl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index f88df9ec08d0..daca9e6a2bb3 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c | |||
@@ -283,6 +283,7 @@ static int lp855x_backlight_register(struct lp855x *lp) | |||
283 | struct lp855x_platform_data *pdata = lp->pdata; | 283 | struct lp855x_platform_data *pdata = lp->pdata; |
284 | const char *name = pdata->name ? : DEFAULT_BL_NAME; | 284 | const char *name = pdata->name ? : DEFAULT_BL_NAME; |
285 | 285 | ||
286 | memset(&props, 0, sizeof(props)); | ||
286 | props.type = BACKLIGHT_PLATFORM; | 287 | props.type = BACKLIGHT_PLATFORM; |
287 | props.max_brightness = MAX_BRIGHTNESS; | 288 | props.max_brightness = MAX_BRIGHTNESS; |
288 | 289 | ||