drm/i915: Store DVO SRCDIM register offset under intel_dvo_device
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Nov 2015 21:19:59 +0000 (23:19 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Nov 2015 12:34:57 +0000 (14:34 +0200)
commit78e0d2e3477aa3e8bdac70698ddd2aad020016d1
treea991192c73eec1d4aa10cd05d8c9dd665df15a96
parent2a5c08323dec87f9f85acc9949d93437512b1392
drm/i915: Store DVO SRCDIM register offset under intel_dvo_device

Store the DVO SRCDIM register offset alongside the DVO control register
offset in intel_dvo_device. This gets rid of the switch statement whose
case values are the DVO control register offsets. Such a construct would
cause problems for register type safety.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446672017-24497-12-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/dvo.h
drivers/gpu/drm/i915/intel_dvo.c