imx-drm: imx-drm-core: provide helper function to parse possible crtcs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Nov 2013 14:04:47 +0000 (14:04 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:07:43 +0000 (12:07 +0000)
commit9e2d410d18bf93c620877a4ea0cab213362a2dda
tree7fd6bc71c2eddef87b00d3e42848f37fb05fc4ca
parent32266b4520352f5fbae2f236c50daf4fa49c860d
imx-drm: imx-drm-core: provide helper function to parse possible crtcs

Provide a helper function to parse possible crtcs before the encoder
is registered.  The crtc mask is derived from the position of the
CRTCs registered in the drm_device.

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
drivers/staging/imx-drm/imx-drm.h