drm/i915: Refactor panel backlight controls
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 22 Aug 2010 12:18:16 +0000 (13:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:23:58 +0000 (10:23 +0100)
commita95735569312f2ab0c80425e2cd1e5cb0b4e1870
tree9daf28afa9b797b7f51486f4f759de9359b1e1e9
parent5d607f9b038ea03f5e5b3064d2f3993f9ea67e1e
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_opregion.c
drivers/gpu/drm/i915/intel_panel.c