ASoC: fsl_asrc: Fix sparse warnings in FSL_ASRC_FORMATS due to typo
authorNicolin Chen <nicoleotsuka@gmail.com>
Thu, 31 Jul 2014 04:07:40 +0000 (12:07 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 19:22:33 +0000 (20:22 +0100)
commitd526416c4fb23a48ed2547138c43e96fa3901124
tree02901a456ee82c33214b463d56a93af746e9975e
parentbdb9eb49671566afb9ca2025752f57d0e1a6b2a3
ASoC: fsl_asrc: Fix sparse warnings in FSL_ASRC_FORMATS due to typo

reproduce: make C=1 CF=-D__CHECK_ENDIAN__

sparse warnings: (new ones prefixed by >>)

>> sound/soc/fsl/fsl_asrc.c:563:28: sparse: restricted snd_pcm_format_t degrades to integer
>> sound/soc/fsl/fsl_asrc.c:570:28: sparse: restricted snd_pcm_format_t degrades to integer

vim +563 sound/soc/fsl/fsl_asrc.c

  557          .probe = fsl_asrc_dai_probe,
  558          .playback = {
  559                  .stream_name = "ASRC-Playback",
  560                  .channels_min = 1,
  561                  .channels_max = 10,
  562                  .rates = FSL_ASRC_RATES,
> 563                  .formats = FSL_ASRC_FORMATS,
  564          },
  565          .capture = {
  566                  .stream_name = "ASRC-Capture",
  567                  .channels_min = 1,
  568                  .channels_max = 10,
  569                  .rates = FSL_ASRC_RATES,
> 570                  .formats = FSL_ASRC_FORMATS,
  571          },
  572          .ops = &fsl_asrc_dai_ops,
  573  };

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_asrc.c