ASoC: ti: davinci-mcasp: Use pcm_for_each_format() macro
authorMin-Hua Chen <minhuadotchen@gmail.com>
Fri, 19 May 2023 21:16:36 +0000 (05:16 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 30 May 2023 12:43:38 +0000 (13:43 +0100)
commitc3079282fdf7285b4133d6d1a7901b7923d6db09
treeb229f5b85e7b8b895908f0052b4c118b8cc9bd2e
parente89f45edb747ed88e97a5771dd6d3dd1eb517873
ASoC: ti: davinci-mcasp: Use pcm_for_each_format() macro

Use pcm_for_each_format for the PCM format iteration and fix the
following sparse warnings.

sound/soc/ti/davinci-mcasp.c:1336:26: sparse: warning: restricted snd_pcm_format_t degrades to integer
sound/soc/ti/davinci-mcasp.c:1358:26: sparse: warning: restricted snd_pcm_format_t degrades to integer
sound/soc/ti/davinci-mcasp.c:1438:26: sparse: warning: restricted snd_pcm_format_t degrades to integer

No functional changes.

Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Link: https://lore.kernel.org/r/20230519211636.3699-1-minhuadotchen@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c