aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/dvo.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-11-04 23:19:59 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-11-18 14:34:57 +0200
commit78e0d2e3477aa3e8bdac70698ddd2aad020016d1 (patch)
treea991192c73eec1d4aa10cd05d8c9dd665df15a96 /drivers/gpu/drm/i915/dvo.h
parentdrm/i915: s/is_sdvob/enum port/ (diff)
downloadlinux-dev-78e0d2e3477aa3e8bdac70698ddd2aad020016d1.tar.xz
linux-dev-78e0d2e3477aa3e8bdac70698ddd2aad020016d1.zip
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>
Diffstat (limited to 'drivers/gpu/drm/i915/dvo.h')
-rw-r--r--drivers/gpu/drm/i915/dvo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h
index 0e2c1b9648a7..20873d649cb7 100644
--- a/drivers/gpu/drm/i915/dvo.h
+++ b/drivers/gpu/drm/i915/dvo.h
@@ -33,6 +33,7 @@ struct intel_dvo_device {
int type;
/* DVOA/B/C output register */
u32 dvo_reg;
+ u32 dvo_srcdim_reg;
/* GPIO register used for i2c bus to control this device */
u32 gpio;
int slave_addr;