]> git.baikalelectronics.ru Git - kernel.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)
commit6464eeaa468eed24b81b2a97903892f70ba108ae
tree802a3126d2e0c204d1e6cfdc720e78f6ee556731
parent34b8903a94a613c05ec737b8cd02184857ede3d8
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