drm/i915: do not access BLC_PWM_CTL2 on pre-gen4 hardware
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Dec 2012 14:36:28 +0000 (16:36 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Dec 2012 21:30:25 +0000 (22:30 +0100)
commitbfd7590d3eed3650e910a22a92dc23ea50e60a41
tree181e4a24af76a22264a9cf017657b190a9cf2cb1
parent633cf8f5056c3e72158e4dbc387b3d65926d2d55
drm/i915: do not access BLC_PWM_CTL2 on pre-gen4 hardware

The BLC_PWM_CTL2 register does not exist before gen4. While at it, do a
slight drive by cleanup of the code.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_panel.c