diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-14 07:38:42 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 12:18:04 -0400 |
commit | 779238e28e42ff49f314df217de146b14d72c582 (patch) | |
tree | 31637f3bf5b3038bdba7afc5491e2ae475277d50 | |
parent | b6ed072028705620ea2937ddafd77a202df034af (diff) |
ASoC: fsl: make snd_soc_platform_driver const
Make these const as they are only passed as the 2nd argument to the function
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/fsl/imx-pcm-fiq.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/mpc5200_dma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 9ce37616ef5d..aef1f7819c40 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c | |||
@@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm) | |||
341 | imx_pcm_free(pcm); | 341 | imx_pcm_free(pcm); |
342 | } | 342 | } |
343 | 343 | ||
344 | static struct snd_soc_platform_driver imx_soc_platform_fiq = { | 344 | static const struct snd_soc_platform_driver imx_soc_platform_fiq = { |
345 | .ops = &imx_pcm_ops, | 345 | .ops = &imx_pcm_ops, |
346 | .pcm_new = imx_pcm_fiq_new, | 346 | .pcm_new = imx_pcm_fiq_new, |
347 | .pcm_free = imx_pcm_fiq_free, | 347 | .pcm_free = imx_pcm_fiq_free, |
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 66042ce86edc..e63029f1aabc 100644 --- a/sound/soc/fsl/mpc5200_dma.c +++ b/sound/soc/fsl/mpc5200_dma.c | |||
@@ -356,7 +356,7 @@ static void psc_dma_free(struct snd_pcm *pcm) | |||
356 | } | 356 | } |
357 | } | 357 | } |
358 | 358 | ||
359 | static struct snd_soc_platform_driver mpc5200_audio_dma_platform = { | 359 | static const struct snd_soc_platform_driver mpc5200_audio_dma_platform = { |
360 | .ops = &psc_dma_ops, | 360 | .ops = &psc_dma_ops, |
361 | .pcm_new = &psc_dma_new, | 361 | .pcm_new = &psc_dma_new, |
362 | .pcm_free = &psc_dma_free, | 362 | .pcm_free = &psc_dma_free, |