diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2015-11-30 17:11:10 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:02:30 -0600 |
commit | c0656d057640760d34bf57c1b53ee68bfcd34416 (patch) | |
tree | 941b431da7d1e3450be276dccbcd2559b1b89d77 /drivers/mxc | |
parent | 0914b531edaa56cf96cc3930e16c6721eb6f22f0 (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.h | 2 |
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 |