diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-13 02:05:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-17 11:17:45 -0400 |
commit | cb7534437956650ab0dcebf7a7b4795eb904d22a (patch) | |
tree | 379ab0a33ccceece008da756a94f630bc052a674 | |
parent | ac1ca3ba9faae7e32f189edda14f6f147053d719 (diff) |
ASoC: mmp-sspa: constify snd_soc_dai_ops structure
This structure is only stored in the ops field of a snd_soc_dai_driver
structure. That field is declared const, so snd_soc_dai_ops structures
that have this property can be declared as const also.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/pxa/mmp-sspa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c index 9cc35012e6e5..64b85e30c1f8 100644 --- a/sound/soc/pxa/mmp-sspa.c +++ b/sound/soc/pxa/mmp-sspa.c | |||
@@ -380,7 +380,7 @@ static int mmp_sspa_probe(struct snd_soc_dai *dai) | |||
380 | SNDRV_PCM_FMTBIT_S24_LE | \ | 380 | SNDRV_PCM_FMTBIT_S24_LE | \ |
381 | SNDRV_PCM_FMTBIT_S32_LE) | 381 | SNDRV_PCM_FMTBIT_S32_LE) |
382 | 382 | ||
383 | static struct snd_soc_dai_ops mmp_sspa_dai_ops = { | 383 | static const struct snd_soc_dai_ops mmp_sspa_dai_ops = { |
384 | .startup = mmp_sspa_startup, | 384 | .startup = mmp_sspa_startup, |
385 | .shutdown = mmp_sspa_shutdown, | 385 | .shutdown = mmp_sspa_shutdown, |
386 | .trigger = mmp_sspa_trigger, | 386 | .trigger = mmp_sspa_trigger, |