imx-drm: imx-hdmi: convert HDMI clock settings to tabular form
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Nov 2013 11:24:00 +0000 (11:24 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:03:39 +0000 (12:03 +0000)
commit3e46f15211fc92812555dac5af765f88b0bfafbd
treeb3084caf0a8375263afbc689c91cf7641d82576f
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691
imx-drm: imx-hdmi: convert HDMI clock settings to tabular form

Rather than having large if() and switch() statements, provide a table
to look up the register settings for various clock rates.

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-hdmi.c