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:
@@ -650,14 +650,14 @@ static int mc13783_remove(struct snd_soc_codec *codec)
|
||||
#define MC13783_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
|
||||
SNDRV_PCM_FMTBIT_S24_LE)
|
||||
|
||||
static struct snd_soc_dai_ops mc13783_ops_dac = {
|
||||
static const struct snd_soc_dai_ops mc13783_ops_dac = {
|
||||
.hw_params = mc13783_pcm_hw_params_dac,
|
||||
.set_fmt = mc13783_set_fmt_async,
|
||||
.set_sysclk = mc13783_set_sysclk_dac,
|
||||
.set_tdm_slot = mc13783_set_tdm_slot_dac,
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops mc13783_ops_codec = {
|
||||
static const struct snd_soc_dai_ops mc13783_ops_codec = {
|
||||
.hw_params = mc13783_pcm_hw_params_codec,
|
||||
.set_fmt = mc13783_set_fmt_async,
|
||||
.set_sysclk = mc13783_set_sysclk_codec,
|
||||
@@ -698,7 +698,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct snd_soc_dai_ops mc13783_ops_sync = {
|
||||
static const struct snd_soc_dai_ops mc13783_ops_sync = {
|
||||
.hw_params = mc13783_pcm_hw_params_sync,
|
||||
.set_fmt = mc13783_set_fmt_sync,
|
||||
.set_sysclk = mc13783_set_sysclk_sync,
|
||||
|
Reference in New Issue
Block a user