[Intel-gfx] [PATCH] drm/i915: Use execlists_num_ports instead of size of array

Chris Wilson chris at chris-wilson.co.uk
Tue Oct 10 12:09:37 UTC 2017


Quoting Mika Kuoppala (2017-10-10 12:48:57)
> There is function to tell how many ports we have, so use it.
> We still have direct relationship with array size and port count,
> so no harm was done.
> 
> Fixes: 76e70087d360 ("drm/i915: Make execlist port count variable")
> Cc: Mika Kuoppala <mika.kuoppala at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>

I had a sweepstake on how long that ARRAY_SIZE would last.

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list