Re: [PATCH] ASoC: fsl: Constify static snd_soc_ops

2021-09-21 Thread Mark Brown
On Mon, 20 Sep 2021 21:39:47 +0200, Rikard Falkeborn wrote: > These are only assigned to the ops field in the snd_soc_dai_link struct > which is a pointer to const struct snd_soc_ops. Make them const to allow > the compiler to put them in read-only memory. > > Applied to https://git.kernel.o

[PATCH] ASoC: fsl: Constify static snd_soc_ops

2021-09-20 Thread Rikard Falkeborn
These are only assigned to the ops field in the snd_soc_dai_link struct which is a pointer to const struct snd_soc_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/soc/fsl/imx-audmix.c | 4 ++-- sound/soc/fsl/imx-card.c | 4 +