aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/smdk_spdif.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-16 22:29:29 +0530
committerMark Brown <broonie@kernel.org>2017-08-17 18:09:39 +0100
commit2af236391f5a167630ebca0eced832afcc4634e0 (patch)
tree23edb62ea725f84f2554e5ecbeae729e09aaa333 /sound/soc/samsung/smdk_spdif.c
parentASoC: samsung: i2s: Null pointer dereference on samsung_i2s_remove (diff)
downloadlinux-dev-2af236391f5a167630ebca0eced832afcc4634e0.tar.xz
linux-dev-2af236391f5a167630ebca0eced832afcc4634e0.zip
ASoC: samsung: make snd_soc_ops const
Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung/smdk_spdif.c')
-rw-r--r--sound/soc/samsung/smdk_spdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c
index a2f2363fe1c2..7fc7cc6d1530 100644
--- a/sound/soc/samsung/smdk_spdif.c
+++ b/sound/soc/samsung/smdk_spdif.c
@@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
return ret;
}
-static struct snd_soc_ops smdk_spdif_ops = {
+static const struct snd_soc_ops smdk_spdif_ops = {
.hw_params = smdk_hw_params,
};