drm/i915: Use correct iterator macro
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 12 Jul 2017 08:13:34 +0000 (10:13 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 13 Jul 2017 07:51:01 +0000 (09:51 +0200)
for_each_connector_in_state will be removed, so use the right state
here.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Link: http://patchwork.freedesktop.org/patch/msgid/20170712081344.25495-7-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_hdmi.c

index ec0779a52d5354a0d0f40aec373ec5e37661c622..916340f038825e9ed9b7601ce34d2da47980abeb 100644 (file)
@@ -1321,7 +1321,7 @@ static bool hdmi_12bpc_possible(struct intel_crtc_state *crtc_state)
        if (crtc_state->output_types != 1 << INTEL_OUTPUT_HDMI)
                return false;
 
-       for_each_connector_in_state(state, connector, connector_state, i) {
+       for_each_new_connector_in_state(state, connector, connector_state, i) {
                const struct drm_display_info *info = &connector->display_info;
 
                if (connector_state->crtc != crtc_state->base.crtc)