From: Bhumika Goyal Date: Mon, 14 Aug 2017 11:38:50 +0000 (+0530) Subject: ASoC: soc-utils: make snd_soc_platform_driver const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9f3d3441311792a0beb410af74e1aad4c3f715d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: soc-utils: make snd_soc_platform_driver const Make this const as it is 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 644d9a9ebfbc..e30aacbcfc29 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c @@ -284,7 +284,7 @@ static const struct snd_pcm_ops dummy_dma_ops = { .ioctl = snd_pcm_lib_ioctl, }; -static struct snd_soc_platform_driver dummy_platform = { +static const struct snd_soc_platform_driver dummy_platform = { .ops = &dummy_dma_ops, };