drm/i915: introduce for_each_encoder_on_crtc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 07:50:24 +0000 (09:50 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jul 2012 13:06:33 +0000 (15:06 +0200)
commit6c2b7c1208b762abc0df318ae53d18d9e5414e1b
tree258832d81855e0e41b6ec87d067bcf480f04aa5a
parentc2c75131244507c93f812862fdbd4f3a37139401
drm/i915: introduce for_each_encoder_on_crtc

We already have this pattern at quite a few places, and moving part of
the modeset helper stuff into the driver will add more.

v2: Don't clobber the crtc struct name with the macro parameter ...

v3: Convert two more places noticed by Paulo Zanoni.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_tv.c