Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d57da16f authored by Maarten Lankhorst's avatar Maarten Lankhorst
Browse files

drm/atmel-hlcdec: Use for_each_new_connector_in_state



for_each_obj_in_state is about to be removed, so use the new iterator
macros.

Signed-off-by: default avatarMaarten 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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent fe5f6b1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;