projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b4f416
)
ASoC: SOF: debug: Constify local snd_sof_dsp_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Fri, 26 Apr 2024 09:03:48 +0000
(11:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 29 Apr 2024 15:16:47 +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-1-e553fe67ae82@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/debug.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/debug.c
b/sound/soc/sof/debug.c
index cf282c8b18af5a2e86081c8710be4101fee28980..884d85770426bcd471ac3999f32fda33509a30b5 100644
(file)
--- a/
sound/soc/sof/debug.c
+++ b/
sound/soc/sof/debug.c
@@
-311,8
+311,8
@@
EXPORT_SYMBOL_GPL(snd_sof_dbg_memory_info_init);
int snd_sof_dbg_init(struct snd_sof_dev *sdev)
{
+ const struct snd_sof_dsp_ops *ops = sof_ops(sdev);
struct snd_sof_pdata *plat_data = sdev->pdata;
- struct snd_sof_dsp_ops *ops = sof_ops(sdev);
const struct snd_sof_debugfs_map *map;
struct dentry *fw_profile;
int i;