Re: [PATCH -next] ASoC: wcd934x: constify static struct snd_soc_dai_ops

2021-04-09 Thread Mark Brown
On Thu, 8 Apr 2021 14:26:48 +0800, Ye Bin wrote: > The snd_soc_dai_ops structures is only stored in the ops field of a > snd_soc_dai_driver structure, so make the snd_soc_dai_ops structure > const to allow the compiler to put it in read-only memory. Applied to https://git.kernel.org/pub/scm/li

[PATCH -next] ASoC: wcd934x: constify static struct snd_soc_dai_ops

2021-04-07 Thread Ye Bin
The snd_soc_dai_ops structures is only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structure const to allow the compiler to put it in read-only memory. Reported-by: Hulk Robot Signed-off-by: Ye Bin --- sound/soc/codecs/wcd934x.c | 2 +- 1 file changed,