Skip to content

Commit 936cc56

Browse files
krzkbroonie
authored andcommitted
ASoC: SOF: intel: bdw: 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 232e0da commit 936cc56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/intel/bdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ static struct snd_soc_dai_driver bdw_dai[] = {
567567
};
568568

569569
/* broadwell ops */
570-
static struct snd_sof_dsp_ops sof_bdw_ops = {
570+
static const struct snd_sof_dsp_ops sof_bdw_ops = {
571571
/*Device init */
572572
.probe = bdw_probe,
573573

0 commit comments

Comments
 (0)