drm/i915: Generate i915_params {} using a macro
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 21:36:05 +0000 (21:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 22:37:32 +0000 (22:37 +0000)
commitb8cf691e28fa48f36f3a318385e1edc9a0a291fd
tree7555eee2f4da1380b2aa694536d3ebedf825af3a
parent2ffe80aa442461eb2fa3cd4c5dda81832e5dd291
drm/i915: Generate i915_params {} using a macro

I want to print the struct from the error state and so would like to use
the existing struct definition as the template ala DEV_INFO*

v2: Use MEMBER() rather than p().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170206213608.31328-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_params.h