summaryrefslogtreecommitdiff
path: root/drivers/staging/imx-drm
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tqs.de>2013-05-27 12:19:10 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 16:02:07 +0400
commit18689f12bf684098370b37a87a4830abab54220f (patch)
tree6b0dee0acd001ee04ab4d595742924d6e1db5f7e /drivers/staging/imx-drm
parent079461bf5d4a4e850374e64e4154cfb458c61af8 (diff)
downloadlinux-18689f12bf684098370b37a87a4830abab54220f.tar.xz
staging: drm/imx: fix spelling error for vsync flag config
partial fix of changes from "staging: drm/imx: Add support for VGA via TVE on i.MX53" Have to check for vsync_pin instead of hsync_pin to set Vsync_pol. Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> Tested-by: Rogerio Pimentel <rpimentel.silva@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/imx-drm')
-rw-r--r--drivers/staging/imx-drm/ipu-v3/ipu-di.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-di.c b/drivers/staging/imx-drm/ipu-v3/ipu-di.c
index 19d777e39d0b..e7b9c9819ae9 100644
--- a/drivers/staging/imx-drm/ipu-v3/ipu-di.c
+++ b/drivers/staging/imx-drm/ipu-v3/ipu-di.c
@@ -614,11 +614,11 @@ int ipu_di_init_sync_panel(struct ipu_di *di, struct ipu_di_signal_cfg *sig)
di_gen |= DI_GEN_POLARITY_7;
}
if (sig->Vsync_pol) {
- if (sig->hsync_pin == 3)
+ if (sig->vsync_pin == 3)
di_gen |= DI_GEN_POLARITY_3;
- else if (sig->hsync_pin == 6)
+ else if (sig->vsync_pin == 6)
di_gen |= DI_GEN_POLARITY_6;
- else if (sig->hsync_pin == 8)
+ else if (sig->vsync_pin == 8)
di_gen |= DI_GEN_POLARITY_8;
}
}