ASoC: Constify local snd_sof_dsp_ops
authorMark Brown <broonie@kernel.org>
Tue, 30 Apr 2024 14:34:51 +0000 (23:34 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 30 Apr 2024 14:34:51 +0000 (23:34 +0900)
commit228132b4d848cf4318f7df8b9c0ad39e22ca6039
treeecef69770c460852913abaa7b1ad08e14844cd81
parentaf2ab6ccb93fb4031d15022a1f60904450a9517a
parent8b6d678fede700db6466d73f11fcbad496fa515e
ASoC: Constify local snd_sof_dsp_ops

Merge series from Krzysztof Kozlowski <krzk@kernel.org>:

The core code does not modify the 'struct snd_sof_dsp_ops' passed via
pointer in various places, so this can be made pointer to const in few
places.  This in turn allows few drivers to have the local (usually
static) 'struct snd_sof_dsp_ops' as const which increased code safety,
as it is now part of rodata.

Not all drivers can be made safer that way. Intel and AMD rely on
customizing that 'struct snd_sof_dsp_ops' before passing to SOF, so they
won't benefit.  They don't lose anything., either.
sound/soc/sof/debug.c