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>
This commit is contained in:
parent
1f93e4a96c
commit
9f7898f3ca
1 changed files with 1 additions and 0 deletions
|
@ -283,6 +283,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue