summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-09-27 13:01:42 +0530
committerTom Rini <trini@konsulko.com>2016-10-08 09:33:35 -0400
commit1053a769fb14ff6824977a42a74a11bc8522a418 (patch)
tree2e0c1fadb6f0fde65e4870a0d650501f54734b62 /board
parente8131386dc38b5ea6e67df5532b90f3597f8f628 (diff)
board: ti: dra7xx: complex definitions should be protected with parentheses
As a standard practice complex definitions should be protected with parentheses, as it might fail when used in a complex if statements. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/dra7xx/evm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 588918f4d69..3c168467353 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -36,10 +36,10 @@
#define board_is_dra74x_evm() board_ti_is("5777xCPU")
#define board_is_dra72x_evm() board_ti_is("DRA72x-T")
-#define board_is_dra74x_revh_or_later() board_is_dra74x_evm() && \
- (strncmp("H", board_ti_get_rev(), 1) <= 0)
-#define board_is_dra72x_revc_or_later() board_is_dra72x_evm() && \
- (strncmp("C", board_ti_get_rev(), 1) <= 0)
+#define board_is_dra74x_revh_or_later() (board_is_dra74x_evm() && \
+ (strncmp("H", board_ti_get_rev(), 1) <= 0))
+#define board_is_dra72x_revc_or_later() (board_is_dra72x_evm() && \
+ (strncmp("C", board_ti_get_rev(), 1) <= 0))
#define board_ti_get_emif_size() board_ti_get_emif1_size() + \
board_ti_get_emif2_size()