drm/atmel-hlcdec: Use for_each_new_connector_in_state
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 12 Jul 2017 08:13:36 +0000 (10:13 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 13 Jul 2017 07:52:09 +0000 (09:52 +0200)
for_each_obj_in_state is about to be removed, so use the new iterator
macros.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712081344.25495-9-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c

index 441769c5bcd4af83e44f7d3a51273e86e323da4b..4fbbeab5c5d422490e2bcfb39cf7923eed09d5f2 100644 (file)
@@ -237,7 +237,7 @@ static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state)
 
        crtc = drm_crtc_to_atmel_hlcdc_crtc(state->crtc);
 
-       for_each_connector_in_state(state->state, connector, cstate, i) {
+       for_each_new_connector_in_state(state->state, connector, cstate, i) {
                struct drm_display_info *info = &connector->display_info;
                unsigned int supported_fmts = 0;
                int j;