ASoC: ak4642: exchange macro name to avoid redefinition
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 15 Sep 2015 02:42:42 +0000 (02:42 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 16 Sep 2015 19:40:27 +0000 (20:40 +0100)
71a0138ab("ASoC: ak4642: enable to use MCKO as fixed rate output
pin on DT") added new FS() macro, but x86 already has it in
arch/x86/include/uapi/asm/ptrace-abi.h
This patch exchange FS() to FSs() to avoid redefinition warning

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4642.c

index b5c4981c9f4c3a1a9aacf4c22066d0045f2a7d74..cda27c22812a71442dd3d927088c2118aa16dc17 100644 (file)
 #define I2S            (3 << 0)
 
 /* MD_CTL2 */
-#define FS(val)                (((val & 0x7) << 0) | ((val & 0x8) << 2))
-#define PS(val)                ((val & 0x3) << 6)
+#define FSs(val)       (((val & 0x7) << 0) | ((val & 0x8) << 2))
+#define PSs(val)       ((val & 0x3) << 6)
 
 /* MD_CTL3 */
 #define BST1           (1 << 3)
@@ -458,7 +458,8 @@ static int ak4642_set_mcko(struct snd_soc_codec *codec,
        for (ps = 0; ps < ARRAY_SIZE(ps_list); ps++) {
                for (fs = 0; fs < ARRAY_SIZE(fs_list); fs++) {
                        if (frequency == ps_list[ps] * fs_list[fs]) {
-                               snd_soc_write(codec, MD_CTL2, PS(ps) | FS(fs));
+                               snd_soc_write(codec, MD_CTL2,
+                                             PSs(ps) | FSs(fs));
                                return 0;
                        }
                }