OSDN Git Service

drm/i915: refactor transcoders reporting on error state
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 22 Feb 2019 23:02:53 +0000 (15:02 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 4 Mar 2019 23:07:59 +0000 (15:07 -0800)
commit062de72bc0c73f4b9fa8532e5a98bf609ebd08da
treead32e66e75b40bf9f2abc68a944aeb6ab2509e76
parentb8fe992a0817290989099113a0111de2b548905b
drm/i915: refactor transcoders reporting on error state

Instead of keeping track of the number of transcoders, loop through all
the interesting ones and check if there is a correspondent offset.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190222230254.20351-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_display.c