projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5acc1
)
ASoC: SOF: pcm: Constify local snd_sof_dsp_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Fri, 26 Apr 2024 09:03:50 +0000
(11:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 29 Apr 2024 15:16:49 +0000
(
00:16
+0900)
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>
sound/soc/sof/pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/pcm.c
b/sound/soc/sof/pcm.c
index 8fca4b0d63dec40ddc80ca06594cb48d546201b8..cb774e011e31af7aaebcd10f7ce59a68fd000ad7 100644
(file)
--- a/
sound/soc/sof/pcm.c
+++ b/
sound/soc/sof/pcm.c
@@
-423,7
+423,7
@@
static int sof_pcm_open(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
- struct snd_sof_dsp_ops *ops = sof_ops(sdev);
+
const
struct snd_sof_dsp_ops *ops = sof_ops(sdev);
struct snd_sof_pcm *spcm;
struct snd_soc_tplg_stream_caps *caps;
int ret;