[media] v4l: vsp1: Fix VI6_DISP_IRQ_STA_LNE macro
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 7 Jan 2015 07:37:54 +0000 (04:37 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 27 Jan 2015 12:38:24 +0000 (10:38 -0200)
LNE bit in VI6_DISP_IRQ_STA register are from the 0 bit to 4 bit.
This fixes bit position specified by VI6_DISP_IRQ_STA_LNE.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_regs.h

index 79d4063d798f7ca91890a45b6bd2bd792d26bd1f..da3c573e1efcabf010cedf9f6f504c458f863fff 100644 (file)
@@ -48,7 +48,7 @@
 #define VI6_DISP_IRQ_STA               0x007c
 #define VI6_DISP_IRQ_STA_DSE           (1 << 8)
 #define VI6_DISP_IRQ_STA_MAE           (1 << 5)
-#define VI6_DISP_IRQ_STA_LNE(n)                (1 << ((n) + 4))
+#define VI6_DISP_IRQ_STA_LNE(n)                (1 << (n))
 
 #define VI6_WPF_LINE_COUNT(n)          (0x0084 + (n) * 4)
 #define VI6_WPF_LINE_COUNT_MASK                (0x1fffff << 0)