aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_hdmi.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-10-26 17:05:50 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-11-11 17:51:07 -0500
commit174edf1f867dc573439675f9b4c2211012d4b563 (patch)
tree975070236c6673d9ceeea043163e1e28fc10129a /drivers/gpu/drm/i915/intel_hdmi.c
parentd63885da964ee15c4ae0b348b00a1ce43b104032 (diff)
drm/i915: add port field to intel_digital_port
Both "intel_dp" and "intel_hdmi" structs had a "port" field, which always had the same value. It makes more sense to move this to intel_digital_port, so we can know the port independently of the connector type. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hdmi.c')
-rw-r--r--drivers/gpu/drm/i915/intel_hdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index c0aadc1436ce..3c42caab8d23 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -971,7 +971,7 @@ static void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port,
971 struct intel_encoder *intel_encoder = &intel_dig_port->base; 971 struct intel_encoder *intel_encoder = &intel_dig_port->base;
972 struct drm_device *dev = intel_encoder->base.dev; 972 struct drm_device *dev = intel_encoder->base.dev;
973 struct drm_i915_private *dev_priv = dev->dev_private; 973 struct drm_i915_private *dev_priv = dev->dev_private;
974 enum port port = intel_hdmi->ddi_port; 974 enum port port = intel_dig_port->port;
975 975
976 drm_connector_init(dev, connector, &intel_hdmi_connector_funcs, 976 drm_connector_init(dev, connector, &intel_hdmi_connector_funcs,
977 DRM_MODE_CONNECTOR_HDMIA); 977 DRM_MODE_CONNECTOR_HDMIA);
@@ -1076,7 +1076,7 @@ void intel_hdmi_init(struct drm_device *dev, int sdvox_reg, enum port port)
1076 intel_encoder->crtc_mask = (1 << 0) | (1 << 1) | (1 << 2); 1076 intel_encoder->crtc_mask = (1 << 0) | (1 << 1) | (1 << 2);
1077 intel_encoder->cloneable = false; 1077 intel_encoder->cloneable = false;
1078 1078
1079 intel_dig_port->hdmi.ddi_port = port; 1079 intel_dig_port->port = port;
1080 intel_dig_port->hdmi.sdvox_reg = sdvox_reg; 1080 intel_dig_port->hdmi.sdvox_reg = sdvox_reg;
1081 intel_dig_port->dp.output_reg = 0; 1081 intel_dig_port->dp.output_reg = 0;
1082 1082