From: Damien Lespiau Subject: [PATCH 0/4] for_each_{intel_,}crtc v2 Date: Tue, 13 May 2014 23:32:20 +0100 Message-ID: <1400020344-17248-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 5272272049 for ; Tue, 13 May 2014 15:32:27 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org With Daniel's help to figure out an arcane corner of coccinelle, here is v2 of a series introducing macros to iterate through the CRTCs instead of using list_for_each_entry() and mode_config.crtc_list, a tiny bit more readable and easier to recall. Damien Lespiau (4): drm/i915: Introduce a for_each_intel_crtc() macro drm/i915: Use for_each_intel_crtc() when iterating through intel_crtcs drm/i915: Introduce a for_each_crtc() macro drm/i915: Use for_each_crtc() when iterating through the CRTCs drivers/gpu/drm/i915/i915_debugfs.c | 4 +- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 6 +++ drivers/gpu/drm/i915/intel_display.c | 71 +++++++++++++++--------------------- drivers/gpu/drm/i915/intel_fbdev.c | 6 +-- drivers/gpu/drm/i915/intel_pm.c | 12 +++--- 6 files changed, 47 insertions(+), 54 deletions(-) -- 1.8.3.1