Skip to content

Commit 232e0da

Browse files
krzkbroonie
authored andcommitted
ASoC: SOF: imx8ulp: Constify snd_sof_dsp_ops
'struct snd_sof_dsp_ops' is not modified by core code, so it can be made const for increased code safety. Tested-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 66d49ab commit 232e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/imx/imx8ulp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int imx8ulp_dsp_set_power_state(struct snd_sof_dev *sdev,
408408
}
409409

410410
/* i.MX8 ops */
411-
static struct snd_sof_dsp_ops sof_imx8ulp_ops = {
411+
static const struct snd_sof_dsp_ops sof_imx8ulp_ops = {
412412
/* probe and remove */
413413
.probe = imx8ulp_probe,
414414
.remove = imx8ulp_remove,

0 commit comments

Comments
 (0)