Re: [Intel-gfx] [PATCH 1/3] drm/i915: Introduce a for_each_intel_encoder() macro

2014-08-05 Thread Daniel Vetter
On Tue, Aug 05, 2014 at 11:29:37AM +0100, Damien Lespiau wrote: > Following the established idom, let's provide a macro to iterate through > the encoders. > > spatch helps, once more, for the substitution: > > @@ > iterator name list_for_each_entry; > iterator name for_each_intel_encoder; >

[Intel-gfx] [PATCH 1/3] drm/i915: Introduce a for_each_intel_encoder() macro

2014-08-05 Thread Damien Lespiau
Following the established idom, let's provide a macro to iterate through the encoders. spatch helps, once more, for the substitution: @@ iterator name list_for_each_entry; iterator name for_each_intel_encoder; struct intel_encoder * encoder; struct drm_device * dev; @@ -list_for_eac