Skip to content

Commit ffca099

Browse files
krzkbroonie
authored andcommitted
ASoC: SOF: debug: 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-1-e553fe67ae82@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9b4f416 commit ffca099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ EXPORT_SYMBOL_GPL(snd_sof_dbg_memory_info_init);
311311

312312
int snd_sof_dbg_init(struct snd_sof_dev *sdev)
313313
{
314+
const struct snd_sof_dsp_ops *ops = sof_ops(sdev);
314315
struct snd_sof_pdata *plat_data = sdev->pdata;
315-
struct snd_sof_dsp_ops *ops = sof_ops(sdev);
316316
const struct snd_sof_debugfs_map *map;
317317
struct dentry *fw_profile;
318318
int i;

0 commit comments

Comments
 (0)