ASoC-fsl_ssi: fixed compilation errors
authorVipul Kumar <vipul_kumar@mentor.com>
Thu, 29 Nov 2018 09:13:36 +0000 (14:43 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:37:55 +0000 (02:37 +0300)
commit918a3a34707202cdf2c36286dfe2546ebbc29aa0
tree7b403d4d574f3aeedac0229a31b8ce57ffd48293
parent2076769ecbf8f30db7f69915eaed9498232f4ef0
ASoC-fsl_ssi: fixed compilation errors

As per commit a818aa5f967b ("ASoC: fsl_ssi: Rename registers and fields
macros"), made changes to fix the compilation errors.

sound/soc/fsl/fsl_ssi.c: In function ‘_fsl_ssi_set_dai_fmt’:
sound/soc/fsl/fsl_ssi.c:896:14: error: ‘regs’ undeclared (first use in this function)
  regmap_read(regs, CCSR_SSI_SCR, &scr);
              ^~~~
sound/soc/fsl/fsl_ssi.c:896:14: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/fsl/fsl_ssi.c:896:20: error: ‘CCSR_SSI_SCR’ undeclared (first use in this function); did you mean ‘REG_SSI_SCR’?
  regmap_read(regs, CCSR_SSI_SCR, &scr);
                    ^~~~~~~~~~~~
                    REG_SSI_SCR
sound/soc/fsl/fsl_ssi.c:897:10: error: ‘CCSR_SSI_SCR_SYN’ undeclared (first use in this function); did you mean ‘SSI_SCR_SYN’?
  scr &= ~CCSR_SSI_SCR_SYN;
          ^~~~~~~~~~~~~~~~
          SSI_SCR_SYN
sound/soc/fsl/fsl_ssi.c:898:9: error: ‘CCSR_SSI_SCR_SYNC_TX_FS’ undeclared (first use in this function); did you mean ‘SSI_SCR_SYNC_TX_FS’?
  scr |= CCSR_SSI_SCR_SYNC_TX_FS;
         ^~~~~~~~~~~~~~~~~~~~~~~
         SSI_SCR_SYNC_TX_FS
scripts/Makefile.build:305: recipe for target 'sound/soc/fsl/fsl_ssi.o' failed
make[3]: *** [sound/soc/fsl/fsl_ssi.o] Error 1
scripts/Makefile.build:546: recipe for target 'sound/soc/fsl' failed
make[2]: *** [sound/soc/fsl] Error 2
scripts/Makefile.build:546: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
Makefile:1052: recipe for target 'sound' failed
make: *** [sound] Error 2

Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
sound/soc/fsl/fsl_ssi.c