From: Damien Lespiau Date: Tue, 13 May 2014 22:32:24 +0000 (+0100) Subject: drm/i915: Use for_each_crtc() when iterating through the CRTCs X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~38^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70e1e0ec02dfe93650fb2c70824dc81e3eb5b2cc;p=pandora-kernel.git drm/i915: Use for_each_crtc() when iterating through the CRTCs Patch done using the following semantic patch (thanks Daniel for the help!) @@ iterator name list_for_each_entry; iterator name for_each_crtc; struct drm_crtc * crtc; struct drm_device * dev; @@ -list_for_each_entry(crtc,&dev->mode_config.crtc_list, head) { +for_each_crtc(dev,crtc) { ... } Followed by a couple of fixups by hand (that spatch doesn't match the cases where list_for_each_entry() is not followed by a set of '{', '}', but I couldn't figure out a way to leave the '{' out of the iterator match). Signed-off-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed