summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-14 13:38:50 +0200
committerMark Brown <broonie@kernel.org>2017-08-14 18:21:41 +0200
commitc9f3d3441311792a0beb410af74e1aad4c3f715d (patch)
tree1117a1ebfe2be593b6bc64f0fe6f9e6a7f7d376c /sound
parentLinux v4.13-rc1 (diff)
downloadlinux-c9f3d3441311792a0beb410af74e1aad4c3f715d.tar.xz
linux-c9f3d3441311792a0beb410af74e1aad4c3f715d.zip
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 <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-utils.c2
1 files changed, 1 insertions, 1 deletions
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,
};