drm/i915: use for_each_intel_connector_iter in intel_display.c
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Mar 2017 09:52:25 +0000 (10:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Mar 2017 22:42:40 +0000 (23:42 +0100)
commitf9e905cabdccfda0be094debbf21cb2cc45b8c51
tree0067643c222a5d65709620f639769817b38c2187
parent51ec53da407a7a6e1c28e973524a15d521f96c7a
drm/i915: use for_each_intel_connector_iter in intel_display.c

This gets rid of the last users of for_each_intel_connector(), remove
that too.

At first I wasn't sure whether the 2 loops in the modeset state
checker should instead only loop over the connectors in the atomic
commit. But we never add connectors to an atomic update if they don't
(or won't have) a CRTC assigned, which means there'd be a gap in check
coverage. Hence loop over everything on those too.

v2: Rebase onto the iter_get/put->iter_begin/end rename.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170301095226.30584-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c