summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/hdac_hda.c
diff options
context:
space:
mode:
authorJulia Lawall2018-10-27 15:34:44 +0200
committerMark Brown2018-11-05 12:25:42 +0100
commit704a9fc20b87f2929732cab0a1a04f28d4093085 (patch)
tree64a16aa48411a8d5ac9453c5209b4d9745597710 /sound/soc/codecs/hdac_hda.c
parentASoC: qdsp6: q6afe-dai: constify snd_soc_dai_ops structures (diff)
downloadkernel-qcow2-linux-704a9fc20b87f2929732cab0a1a04f28d4093085.tar.gz
kernel-qcow2-linux-704a9fc20b87f2929732cab0a1a04f28d4093085.tar.xz
kernel-qcow2-linux-704a9fc20b87f2929732cab0a1a04f28d4093085.zip
ASoC: codecs: constify snd_soc_dai_ops structures
The snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structures const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdac_hda.c')
-rw-r--r--sound/soc/codecs/hdac_hda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/hdac_hda.c b/sound/soc/codecs/hdac_hda.c
index 2aaa83028e55..ffecdaaa8cf2 100644
--- a/sound/soc/codecs/hdac_hda.c
+++ b/sound/soc/codecs/hdac_hda.c
@@ -46,7 +46,7 @@ static int hdac_hda_dai_set_tdm_slot(struct snd_soc_dai *dai,
static struct hda_pcm *snd_soc_find_pcm_from_dai(struct hdac_hda_priv *hda_pvt,
struct snd_soc_dai *dai);
-static struct snd_soc_dai_ops hdac_hda_dai_ops = {
+static const struct snd_soc_dai_ops hdac_hda_dai_ops = {
.startup = hdac_hda_dai_open,
.shutdown = hdac_hda_dai_close,
.prepare = hdac_hda_dai_prepare,