summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/smdk_wm8994pcm.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-07-28 19:25:48 +0200
committerMark Brown <broonie@kernel.org>2021-07-29 16:35:48 +0200
commit2080acf3d18029ca52189a14b2ee462ea89c5d06 (patch)
tree94dc6976ac43949efab5f8bfd529b302dcc9b171 /sound/soc/samsung/smdk_wm8994pcm.c
parentASoC: bcm: cygnus-pcm: Fix unused assignment about 'rc' (diff)
downloadlinux-2080acf3d18029ca52189a14b2ee462ea89c5d06.tar.xz
linux-2080acf3d18029ca52189a14b2ee462ea89c5d06.zip
ASoC: samsung: Constify static snd_soc_ops
These are only assigned to the ops field in the snd_soc_dai_link struct which is a pointer to const struct snd_soc_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20210728172548.234943-1-rikard.falkeborn@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung/smdk_wm8994pcm.c')
-rw-r--r--sound/soc/samsung/smdk_wm8994pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/smdk_wm8994pcm.c b/sound/soc/samsung/smdk_wm8994pcm.c
index a01640576f71..029448f5bedb 100644
--- a/sound/soc/samsung/smdk_wm8994pcm.c
+++ b/sound/soc/samsung/smdk_wm8994pcm.c
@@ -85,7 +85,7 @@ static int smdk_wm8994_pcm_hw_params(struct snd_pcm_substream *substream,
return 0;
}
-static struct snd_soc_ops smdk_wm8994_pcm_ops = {
+static const struct snd_soc_ops smdk_wm8994_pcm_ops = {
.hw_params = smdk_wm8994_pcm_hw_params,
};