summaryrefslogtreecommitdiff
path: root/drivers/mxc
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2015-11-30 17:11:10 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:30 -0600
commitc0656d057640760d34bf57c1b53ee68bfcd34416 (patch)
tree941b431da7d1e3450be276dccbcd2559b1b89d77 /drivers/mxc
parent0914b531edaa56cf96cc3930e16c6721eb6f22f0 (diff)
MLK-11921-3 mxc IPUv3: regs: Fix the macro WROD definition
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>
Diffstat (limited to 'drivers/mxc')
-rw-r--r--drivers/mxc/ipu3/ipu_regs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_regs.h b/drivers/mxc/ipu3/ipu_regs.h
index 79051cf5f229..099346da3e1b 100644
--- a/drivers/mxc/ipu3/ipu_regs.h
+++ b/drivers/mxc/ipu3/ipu_regs.h
@@ -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