summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/fsl_xcvr.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-02-06 23:58:49 +0100
committerMark Brown <broonie@kernel.org>2021-02-08 12:39:56 +0100
commit38d89a564847048c0f6fe53a829d15edb4f21da3 (patch)
treefcbbb12adbc2380457ca3a7f37ef0e884fe1acc6 /sound/soc/fsl/fsl_xcvr.c
parentASoC: dt-bindings: renesas, rsnd: Group tuples in playback/capture properties (diff)
downloadlinux-38d89a564847048c0f6fe53a829d15edb4f21da3.tar.xz
linux-38d89a564847048c0f6fe53a829d15edb4f21da3.zip
ASoC: fsl: constify static snd_soc_dai_ops structs
The only usage of these is to assign their address to the 'ops' field in the snd_soc_dai_driver struct, which is a pointer to const. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com> Link: https://lore.kernel.org/r/20210206225849.51071-1-rikard.falkeborn@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_xcvr.c')
-rw-r--r--sound/soc/fsl/fsl_xcvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c
index dd228b421e2c..6dd0a5fcd455 100644
--- a/sound/soc/fsl/fsl_xcvr.c
+++ b/sound/soc/fsl/fsl_xcvr.c
@@ -857,7 +857,7 @@ static struct snd_kcontrol_new fsl_xcvr_tx_ctls[] = {
},
};
-static struct snd_soc_dai_ops fsl_xcvr_dai_ops = {
+static const struct snd_soc_dai_ops fsl_xcvr_dai_ops = {
.prepare = fsl_xcvr_prepare,
.startup = fsl_xcvr_startup,
.shutdown = fsl_xcvr_shutdown,