diff options
author | Corentin Chary <corentin.chary@gmail.com> | 2012-05-30 00:07:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-30 01:22:30 +0200 |
commit | f5f4fd451634e5295cc807684a0eabd264b9db4d (patch) | |
tree | ba8901bf5d8e89eb0247cd315b7573bc4dd99de6 /drivers/video/backlight/pcf50633-backlight.c | |
parent | drivers/video/backlight/l4f00242t03.c: use pr_fmt (diff) | |
download | linux-f5f4fd451634e5295cc807684a0eabd264b9db4d.tar.xz linux-f5f4fd451634e5295cc807684a0eabd264b9db4d.zip |
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>
Diffstat (limited to 'drivers/video/backlight/pcf50633-backlight.c')
-rw-r--r-- | drivers/video/backlight/pcf50633-backlight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/pcf50633-backlight.c b/drivers/video/backlight/pcf50633-backlight.c index c65853cb9740..c092159f4383 100644 --- a/drivers/video/backlight/pcf50633-backlight.c +++ b/drivers/video/backlight/pcf50633-backlight.c @@ -111,6 +111,7 @@ static int __devinit pcf50633_bl_probe(struct platform_device *pdev) if (!pcf_bl) return -ENOMEM; + memset(&bl_props, 0, sizeof(bl_props)); bl_props.type = BACKLIGHT_RAW; bl_props.max_brightness = 0x3f; bl_props.power = FB_BLANK_UNBLANK; |