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)
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>

No differences found