aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/haswell
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-14 17:08:41 +0530
committerMark Brown <broonie@kernel.org>2017-08-14 17:22:29 +0100
commit80cc4df8b46e91c28a6d39dd0ba76bd9c83c18ce (patch)
tree7b2d5b67f45a59062fbd3033d4d4d4d2813b11dc /sound/soc/intel/haswell
parentASoC: Intel: constify pci_device_id. (diff)
downloadlinux-dev-80cc4df8b46e91c28a6d39dd0ba76bd9c83c18ce.tar.xz
linux-dev-80cc4df8b46e91c28a6d39dd0ba76bd9c83c18ce.zip
ASoC: Intel: 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: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/haswell')
-rw-r--r--sound/soc/intel/haswell/sst-haswell-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-pcm.c b/sound/soc/intel/haswell/sst-haswell-pcm.c
index 9e4094e2c6e3..c044400540ec 100644
--- a/sound/soc/intel/haswell/sst-haswell-pcm.c
+++ b/sound/soc/intel/haswell/sst-haswell-pcm.c
@@ -1135,7 +1135,7 @@ static int hsw_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver hsw_soc_platform = {
+static const struct snd_soc_platform_driver hsw_soc_platform = {
.probe = hsw_pcm_probe,
.remove = hsw_pcm_remove,
.ops = &hsw_pcm_ops,