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 <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-11-e553fe67ae82@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 232e0da commit 936cc56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)