]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: sof-probes: Constify sof_probe_compr_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 4 Dec 2021 20:32:20 +0000 (21:32 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Dec 2021 13:22:16 +0000 (13:22 +0000)
commita58a030e8a6b41f9352215699b0e8576e0fdd8cb
tree7809f951931f3c336d9b45556208d7a8c66dbb30
parentb61662501de10507e19853b1d59e694826311408
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>
sound/soc/sof/sof-probes.c
sound/soc/sof/sof-probes.h