summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt1016.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-02-25 00:19:16 +0300
committerMark Brown <broonie@kernel.org>2021-03-10 16:06:33 +0300
commitf9e56a34cda2189a1d1611bdff1f6d1d0fb460e5 (patch)
treef0b459cf7f24152696737bb1fd2560104695a72d /sound/soc/codecs/rt1016.c
parent628fc9d9a0e6e52fd3116b5591cb4e90473db9ad (diff)
downloadlinux-f9e56a34cda2189a1d1611bdff1f6d1d0fb460e5.tar.xz
ASoC: rt*: Constify static struct snd_soc_dai_ops
The only usage of them 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> Link: https://lore.kernel.org/r/20210224211918.39109-3-rikard.falkeborn@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1016.c')
-rw-r--r--sound/soc/codecs/rt1016.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt1016.c b/sound/soc/codecs/rt1016.c
index a23d368ab4da..483375fc16ca 100644
--- a/sound/soc/codecs/rt1016.c
+++ b/sound/soc/codecs/rt1016.c
@@ -534,7 +534,7 @@ static void rt1016_remove(struct snd_soc_component *component)
#define RT1016_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
-static struct snd_soc_dai_ops rt1016_aif_dai_ops = {
+static const struct snd_soc_dai_ops rt1016_aif_dai_ops = {
.hw_params = rt1016_hw_params,
.set_fmt = rt1016_set_dai_fmt,
};