Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 779238e2 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mark Brown
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b6ed0720
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,