drm: bridge/dw_hdmi: avoid being recursive in N calculation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Jul 2015 09:35:41 +0000 (10:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Oct 2015 16:17:32 +0000 (17:17 +0100)
commitd0c96d168021a60555c692d860334814cc694d8b
tree4a96ebe82ea94f3c8f78e99f99cf922ac8942d08
parent91cd69088ecc375d057eb3721bfbcf927e9f2dd2
drm: bridge/dw_hdmi: avoid being recursive in N calculation

There's no need to be recursive when computing the N value for the ACR
packet - we can instead calculate the multiplier prior to our switch()
based lookup, and multiply the N value appropriately afterwards.

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/bridge/dw_hdmi.c