ASoC: fsl: make snd_soc_platform_driver const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 14 Aug 2017 11:38:42 +0000 (17:08 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:18:04 +0000 (17:18 +0100)
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>
sound/soc/fsl/imx-pcm-fiq.c
sound/soc/fsl/mpc5200_dma.c

index 9ce37616ef5d04e57871f32b4cb108c55fd52236..aef1f7819c40e42cb434b3a05791a785980ed4ac 100644 (file)
@@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm)
        imx_pcm_free(pcm);
 }
 
-static struct snd_soc_platform_driver imx_soc_platform_fiq = {
+static const struct snd_soc_platform_driver imx_soc_platform_fiq = {
        .ops            = &imx_pcm_ops,
        .pcm_new        = imx_pcm_fiq_new,
        .pcm_free       = imx_pcm_fiq_free,
index 66042ce86edcc7a14bc7cc686e082537edf8c47f..e63029f1aabc0b499985226c9624950cb146737c 100644 (file)
@@ -356,7 +356,7 @@ static void psc_dma_free(struct snd_pcm *pcm)
        }
 }
 
-static struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
+static const struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
        .ops            = &psc_dma_ops,
        .pcm_new        = &psc_dma_new,
        .pcm_free       = &psc_dma_free,