]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't hardcode the number of pipes in the error state dump
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 15 Aug 2012 18:23:25 +0000 (19:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Aug 2012 08:10:05 +0000 (10:10 +0200)
commitd546dfc7351d7f75e0bc9adc5872fb7dead1fa13
tree43317f87bd890168cb8fd110616280cf11e81dd1
parentb87a4d97f115cdb4ed9840b4f755aad6d771a94d
drm/i915: Don't hardcode the number of pipes in the error state dump

New-ish devices have 3 pipes, so let's not just hardcode 2 but use the
for_each_pipe() macro and make struct intel_display_error_state is big
enough.

V2: Also add the number of pipes emitted (Chris Wilson)

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c