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)
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.

1  2 
sound/soc/sof/debug.c

Simple merge