ASoC: SOF: Constify stored pointer to snd_sof_dsp_ops
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 26 Apr 2024 09:03:51 +0000 (11:03 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:16:49 +0000 (00:16 +0900)
commit8bbc692d1abce5bc949dea9acba85fc686601c04
treec8851216c28a6c96e9a7685775c6aa6e42e52ee9
parenta0db037df9630edad76153c7937c6f5ca04ed44f
ASoC: SOF: Constify stored pointer to snd_sof_dsp_ops

The core code does not modify the 'struct snd_sof_dsp_ops', stored in
'struct sof_dev_desc'.  Make the pointer to 'struct snd_sof_dsp_ops'
const to annotate this, make code a bit safer and allow individual
drivers to also define this structure as const.

Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240426-n-const-ops-var-v2-4-e553fe67ae82@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof.h