MLK-11921-3 mxc IPUv3: regs: Fix the macro WROD definition
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 30 Nov 2015 09:11:10 +0000 (17:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:20 +0000 (14:49 -0500)
This patch adds missing parentheses around the argument of the macro
WROD to avoid any potential macro expansion issue.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/mxc/ipu3/ipu_regs.h

index 79051cf..099346d 100644 (file)
@@ -696,7 +696,7 @@ enum di_sync_wave {
 };
 
 /* DC template opcodes */
-#define WROD(lf)               (0x18 | (lf << 1))
+#define WROD(lf)               (0x18 | ((lf) << 1))
 #define WRG                    (0x01)
 
 #endif