Re: [PATCH 00/14] ASoC: Constify local snd_sof_dsp_ops
15 Apr
2024
15 Apr
'24
4:19 p.m.
The core code does not modify the 'struct snd_sof_dsp_ops' passed via pointer in various places, so this can be made pointer to const.
The structure itself is NOT always const - the initialization itself does have platform-specific changes, so what do we really gain from all this?
some commit messages say the code is "a bit safer", but I personally find the 'const' more confusing since the information that the structure can be modified during initialization is lost.
250
Age (days ago)
250
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pierre-Louis Bossart