]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_display.c
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)
commit523313092abffb21bfe7cd8d37615402b2228850
tree43317f87bd890168cb8fd110616280cf11e81dd1
parent33faad195eec0c72fec84e638623ea25652eed72
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