diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-12-04 21:32:20 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-14 13:22:16 +0000 |
commit | ec247fea7380244626d7095dfc1a0bb6c1f84f29 (patch) | |
tree | 7809f951931f3c336d9b45556208d7a8c66dbb30 /sound/soc/sof/sof-probes.c | |
parent | 475b17b4a875ef31246c6a038ee60d5ca4982ea5 (diff) | |
download | lwn-ec247fea7380244626d7095dfc1a0bb6c1f84f29.tar.gz lwn-ec247fea7380244626d7095dfc1a0bb6c1f84f29.zip |
ASoC: SOF: sof-probes: Constify sof_probe_compr_ops
The only usage of sof_probe_compr_ops is to assign its address to the
cops field in the snd_soc_dai_driver struct (in
sound/soc/sof/intel/hda-dai.c). Make it const to allow the compiler to
put it in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20211204203220.54712-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-probes.c')
-rw-r--r-- | sound/soc/sof/sof-probes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/sof-probes.c b/sound/soc/sof/sof-probes.c index 5586af9f1a25..c79026cdb8c7 100644 --- a/sound/soc/sof/sof-probes.c +++ b/sound/soc/sof/sof-probes.c @@ -321,7 +321,7 @@ static int sof_probe_compr_pointer(struct snd_compr_stream *cstream, return snd_sof_probe_compr_pointer(sdev, cstream, tstamp, dai); } -struct snd_soc_cdai_ops sof_probe_compr_ops = { +const struct snd_soc_cdai_ops sof_probe_compr_ops = { .startup = sof_probe_compr_startup, .shutdown = sof_probe_compr_shutdown, .set_params = sof_probe_compr_set_params, |