diff options
author | Stefan Agner <stefan@agner.ch> | 2017-12-06 10:17:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-06 10:24:58 -0500 |
commit | d1b726a9018e3f684ce190a1cbe012cb64f363d8 (patch) | |
tree | 0b4a79a16221347f6c305236275c2e81c8cde395 | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) |
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: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/fsl/fsl_asrc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h index 0f163abe4ba3..ec33dab4b909 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h | |||
@@ -57,7 +57,7 @@ | |||
57 | #define REG_ASRDOC 0x74 | 57 | #define REG_ASRDOC 0x74 |
58 | #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) | 58 | #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) |
59 | #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) | 59 | #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) |
60 | #define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) | 60 | #define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i)) |
61 | 61 | ||
62 | #define REG_ASRIDRHA 0x80 | 62 | #define REG_ASRIDRHA 0x80 |
63 | #define REG_ASRIDRLA 0x84 | 63 | #define REG_ASRIDRLA 0x84 |