diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-14 07:38:45 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 12:19:50 -0400 |
commit | 3d882b0ec6a50c5adff8e94a69d284543460fbe6 (patch) | |
tree | 274ae9717fa917c739f417208e49a54e936e6cb2 | |
parent | cb7534437956650ab0dcebf7a7b4795eb904d22a (diff) |
ASoC: pxa: make snd_soc_platform_driver const
Make these const as they are only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/pxa/mmp-pcm.c | 2 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-pcm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 5b5f1a442891..38d599949ee4 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c | |||
@@ -211,7 +211,7 @@ err: | |||
211 | return ret; | 211 | return ret; |
212 | } | 212 | } |
213 | 213 | ||
214 | static struct snd_soc_platform_driver mmp_soc_platform = { | 214 | static const struct snd_soc_platform_driver mmp_soc_platform = { |
215 | .ops = &mmp_pcm_ops, | 215 | .ops = &mmp_pcm_ops, |
216 | .pcm_new = mmp_pcm_new, | 216 | .pcm_new = mmp_pcm_new, |
217 | .pcm_free = mmp_pcm_free_dma_buffers, | 217 | .pcm_free = mmp_pcm_free_dma_buffers, |
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index b51d7a0755d5..636895a778cb 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -84,7 +84,7 @@ static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd) | |||
84 | return ret; | 84 | return ret; |
85 | } | 85 | } |
86 | 86 | ||
87 | static struct snd_soc_platform_driver pxa2xx_soc_platform = { | 87 | static const struct snd_soc_platform_driver pxa2xx_soc_platform = { |
88 | .ops = &pxa2xx_pcm_ops, | 88 | .ops = &pxa2xx_pcm_ops, |
89 | .pcm_new = pxa2xx_soc_pcm_new, | 89 | .pcm_new = pxa2xx_soc_pcm_new, |
90 | .pcm_free = pxa2xx_pcm_free_dma_buffers, | 90 | .pcm_free = pxa2xx_pcm_free_dma_buffers, |