Skip to content

Commit a0db037

Browse files
krzkbroonie
authored andcommitted
ASoC: SOF: pcm: Constify local snd_sof_dsp_ops
Constify the pointer to 'struct snd_sof_dsp_ops' to annotate that functioon does not modify pointed data. 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-3-e553fe67ae82@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ee5acc1 commit a0db037

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int sof_pcm_open(struct snd_soc_component *component,
423423
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
424424
struct snd_pcm_runtime *runtime = substream->runtime;
425425
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
426-
struct snd_sof_dsp_ops *ops = sof_ops(sdev);
426+
const struct snd_sof_dsp_ops *ops = sof_ops(sdev);
427427
struct snd_sof_pcm *spcm;
428428
struct snd_soc_tplg_stream_caps *caps;
429429
int ret;

0 commit comments

Comments
 (0)