backlight: initialize struct backlight_properties properly
In all these files, the .power field was never correctly initialized. Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Cc: Jingoo Han <jg1.han@samsung.com> Cc: Dave Airlie <airlied@gmail.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committato da
Linus Torvalds

parent
6677110b74
commit
f5f4fd4516
@@ -194,6 +194,7 @@ static int wm831x_backlight_probe(struct platform_device *pdev)
|
||||
data->current_brightness = 0;
|
||||
data->isink_reg = isink_reg;
|
||||
|
||||
memset(&props, 0, sizeof(props));
|
||||
props.type = BACKLIGHT_RAW;
|
||||
props.max_brightness = max_isel;
|
||||
bl = backlight_device_register("wm831x", &pdev->dev, data,
|
||||
|
Fai riferimento in un nuovo problema
Block a user