aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_panel.c
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2012-05-22 05:29:46 -0400
committerDave Airlie <airlied@redhat.com>2012-05-22 05:29:46 -0400
commitaf437cfd355275a62e45ce8281ef5cc57c953bbc (patch)
treeacc097a280651fa0707948baf8dbe6b2a51ad45c /drivers/gpu/drm/i915/intel_panel.c
parent6225ee05ea44638b51ded0056505923cb6e2656d (diff)
drm/backlight: initialize struct backlight_properties properly
The power field was never correctly initialized. [airlied: just took the two drm specific bits] Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r--drivers/gpu/drm/i915/intel_panel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 2b2e011e9055..2a1625d84a69 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -368,6 +368,7 @@ int intel_panel_setup_backlight(struct drm_device *dev)
368 else 368 else
369 return -ENODEV; 369 return -ENODEV;
370 370
371 memset(&props, 0, sizeof(props));
371 props.type = BACKLIGHT_RAW; 372 props.type = BACKLIGHT_RAW;
372 props.max_brightness = intel_panel_get_max_backlight(dev); 373 props.max_brightness = intel_panel_get_max_backlight(dev);
373 dev_priv->backlight = 374 dev_priv->backlight =