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-Tag: v4.14-rc1~114^2~3^2~1^4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f3d3441311792a0beb410af74e1aad4c3f715d;p=thirdparty%2Fkernel%2Flinux.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 644d9a9ebfbc5..e30aacbcfc291 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, };