drm/i915: introduce for_each_engine_id()
authorDave Gordon <david.s.gordon@intel.com>
Wed, 23 Mar 2016 18:19:53 +0000 (18:19 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 24 Mar 2016 14:34:06 +0000 (14:34 +0000)
commitc3232b1883e033e291aa3146f431b7ec87c80ec5
tree23ddb4979bfa6c0da7b9393f254ec303102046d8
parentdb18b6a64ca3fb260858279b218b84d5c179330f
drm/i915: introduce for_each_engine_id()

Equivalent to the existing for_each_engine() macro, this will replace
the latter wherever the third argument *is* actually wanted (in most
places, it is not used). The third argument is renamed to emphasise
that it is an engine id (type enum intel_engine_id). All the callers of
the macro that actually need the third argument are updated to use this
version, and the argument (generally 'i') is also updated to be 'id'.
Other callers (where the third argument is unused) are untouched for
now; they will be updated in the next patch.

Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_mocs.c
drivers/gpu/drm/i915/intel_ringbuffer.c