diff options
author | Corentin Chary <corentin.chary@gmail.com> | 2012-05-29 18:07:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 19:22:30 -0400 |
commit | f5f4fd451634e5295cc807684a0eabd264b9db4d (patch) | |
tree | ba8901bf5d8e89eb0247cd315b7573bc4dd99de6 /drivers/platform | |
parent | 6677110b748aa1fe92d039b09d34ac7f35391fb0 (diff) |
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/platform')
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index ee79ce64d9df..57787d87d9a4 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -1104,6 +1104,7 @@ static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev) | |||
1104 | 1104 | ||
1105 | mutex_init(&dev->mutex); | 1105 | mutex_init(&dev->mutex); |
1106 | 1106 | ||
1107 | memset(&props, 0, sizeof(props)); | ||
1107 | props.type = BACKLIGHT_PLATFORM; | 1108 | props.type = BACKLIGHT_PLATFORM; |
1108 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; | 1109 | props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; |
1109 | dev->backlight_dev = backlight_device_register("toshiba", | 1110 | dev->backlight_dev = backlight_device_register("toshiba", |