imx-drm: imx-drm-core: use array instead of list for CRTCs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Nov 2013 13:23:17 +0000 (13:23 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:04:04 +0000 (12:04 +0000)
commit887eceacc52e3f83fc8dd819c447632d3c0eb7d2
treeb7290e83fdeb211446e5675f1600f11cfe50f6c4
parente76171b046e95e45266f3a4f4b900a5647e80d70
imx-drm: imx-drm-core: use array instead of list for CRTCs

The DRM core indexes vblank by number, so there's little point
maintaining a list, and have to scan the list to find the appropriate
structure.  Instead, use an array of pointers to the CRTCs.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-drm-core.c