drm/i915: Convert intel_dp to enum port
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Jan 2013 13:29:27 +0000 (15:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Jan 2013 21:26:21 +0000 (22:26 +0100)
Use intel_dig_port->port rather than intel_dp->output_reg.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.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_dp.c

index 1492706ed08711c83c77d4410375a639297fd9b5..51fd79758368631ad8a308d9990167277877ef6f 100644 (file)
@@ -2291,16 +2291,17 @@ g4x_dp_detect(struct intel_dp *intel_dp)
 {
        struct drm_device *dev = intel_dp_to_dev(intel_dp);
        struct drm_i915_private *dev_priv = dev->dev_private;
+       struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
        uint32_t bit;
 
-       switch (intel_dp->output_reg) {
-       case DP_B:
+       switch (intel_dig_port->port) {
+       case PORT_B:
                bit = DPB_HOTPLUG_LIVE_STATUS;
                break;
-       case DP_C:
+       case PORT_C:
                bit = DPC_HOTPLUG_LIVE_STATUS;
                break;
-       case DP_D:
+       case PORT_D:
                bit = DPD_HOTPLUG_LIVE_STATUS;
                break;
        default: