Commit d1b726a9 authored by Stefan Agner's avatar Stefan Agner Committed by Mark Brown

ASoC: fsl_asrc: protect macro argument

Protect macro argument with parentheses to avoid ambiguity.
This fixes a warning seen with clang:
  warning: logical not is only applied to the left hand side of this comparison
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fbd8d19
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#define REG_ASRDOC 0x74 #define REG_ASRDOC 0x74
#define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) #define REG_ASRDI(i) (REG_ASRDIA + (i << 3))
#define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) #define REG_ASRDO(i) (REG_ASRDOA + (i << 3))
#define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) #define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
#define REG_ASRIDRHA 0x80 #define REG_ASRIDRHA 0x80
#define REG_ASRIDRLA 0x84 #define REG_ASRIDRLA 0x84
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment