drm/i915: Use correct iterator macro
authorMaarten Lankhorst <[email protected]>
Wed, 12 Jul 2017 08:13:34 +0000 (10:13 +0200)
committerMaarten Lankhorst <[email protected]>
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 <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: [email protected]
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Daniel Vetter <[email protected]>
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)