]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Turn DEV_INFO_FLAGS into a foreach style macro
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 23 Apr 2013 15:37:17 +0000 (16:37 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Apr 2013 15:44:21 +0000 (17:44 +0200)
commit79fc46dfd0c7cc68442554a428e03a3b7e0d44aa
tree802a3126d2e0c204d1e6cfdc720e78f6ee556731
parent321a1b3026ea194dd084cf3bda1e235b2986b0af
drm/i915: Turn DEV_INFO_FLAGS into a foreach style macro

DEV_INFO_FOR_FLAG() now takes 2 parameters:
  • A function to apply to the flag
  • A separator

This will allow us to use the macro twice in the DRM_DEBUG_DRIVER() call
of i915_dump_device_info().

v2: Fix a typo in the subject (Jani Nikula)
v3: Undef the helper macros (Jani Nikula, Daniel vetter)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h