ASoC: Constify snd_soc_dai_ops variables
The snd_soc_dai_ops variables are not modified after initialization in these drivers, so make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -3110,7 +3110,7 @@ static int rt5645_resume(struct snd_soc_codec *codec)
|
||||
#define RT5645_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
|
||||
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
|
||||
|
||||
static struct snd_soc_dai_ops rt5645_aif_dai_ops = {
|
||||
static const struct snd_soc_dai_ops rt5645_aif_dai_ops = {
|
||||
.hw_params = rt5645_hw_params,
|
||||
.set_fmt = rt5645_set_dai_fmt,
|
||||
.set_sysclk = rt5645_set_dai_sysclk,
|
||||
|
Reference in New Issue
Block a user