gpu: imx: simplify sync polarity setting
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jul 2015 09:00:15 +0000 (10:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 6 Oct 2015 18:58:21 +0000 (19:58 +0100)
commitf94ab604db9db1a8a0cf0827f5573bfd2d2b89aa
tree3c921e8362921f116b9e71c921b4901cf9f0165e
parent049e6dde7e57f0054fdc49102e7ef4830c698b46
gpu: imx: simplify sync polarity setting

Use a function to convert the sync pin to a bit mask for the DI_GENERAL
register, and move this out of the interlace/non-interlace path to the
common path.

Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/ipu-v3/ipu-di.c