diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-22 08:18:16 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-08 05:23:58 -0400 |
commit | a95735569312f2ab0c80425e2cd1e5cb0b4e1870 (patch) | |
tree | 9daf28afa9b797b7f51486f4f759de9359b1e1e9 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 5d607f9b038ea03f5e5b3064d2f3993f9ea67e1e (diff) |
drm/i915: Refactor panel backlight controls
There were two instances of code to control the panel backlight and
neither handled the complete set of device variations.
Fixes:
Bug 29716 - [GM965] Regression: Backlight resets to minimum when changing resolution
https://bugs.freedesktop.org/show_bug.cgi?id=29716
And a bug on one of my PineView boxes which overflowed the backlight
value.
Incorporates part of a similar patch by Matthew Garrett that exposes a
native Intel backlight controller.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index e6fbeb43d59c..cfc8bfd0fd7e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -319,7 +319,7 @@ typedef struct drm_i915_private { | |||
319 | struct intel_overlay *overlay; | 319 | struct intel_overlay *overlay; |
320 | 320 | ||
321 | /* LVDS info */ | 321 | /* LVDS info */ |
322 | int backlight_duty_cycle; /* restore backlight to this value */ | 322 | int backlight_level; /* restore backlight to this value */ |
323 | bool panel_wants_dither; | 323 | bool panel_wants_dither; |
324 | struct drm_display_mode *panel_fixed_mode; | 324 | struct drm_display_mode *panel_fixed_mode; |
325 | struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ | 325 | struct drm_display_mode *lfp_lvds_vbt_mode; /* if any */ |