diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-15 09:38:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-15 13:12:46 +0200 |
commit | 64793047558781330a1d13b159a2bc9385bdf97f (patch) | |
tree | 2f574a0b89a19922961e7827fb4d85dbda75e31c /sound/soc/codecs/rt5645.c | |
parent | Linux 4.2-rc1 (diff) | |
download | linux-64793047558781330a1d13b159a2bc9385bdf97f.tar.xz linux-64793047558781330a1d13b159a2bc9385bdf97f.zip |
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>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
-rw-r--r-- | sound/soc/codecs/rt5645.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 9ce311e088fc..7c59326dce3e 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -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, |