]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl: constify static snd_soc_dai_ops structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 6 Feb 2021 22:58:49 +0000 (23:58 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 8 Feb 2021 11:39:56 +0000 (11:39 +0000)
commitce0e5298fb84f7ddcb459b4caa4be6dbee144ab1
treefcbbb12adbc2380457ca3a7f37ef0e884fe1acc6
parent567addee28c17c174ef3cebb157f2d5c83d0cdc2
ASoC: fsl: constify static snd_soc_dai_ops structs

The only usage of these is to assign their address to the 'ops' field in
the snd_soc_dai_driver struct, which is a pointer to const. Make them
const to allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20210206225849.51071-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_easrc.c
sound/soc/fsl/fsl_micfil.c
sound/soc/fsl/fsl_xcvr.c