OSDN Git Service

ASoC: mediatek: Constify static snd_soc_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 12 Oct 2021 20:55:21 +0000 (22:55 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 13 Oct 2021 11:59:28 +0000 (12:59 +0100)
commitabed054f039a69579a21099dbb53aa008ea66d03
tree9932cba2a34f120b3ae8925354b234bbd8e4f729
parent916f2ce39d48fc52a8ef1d82c62d7d42e2562603
ASoC: mediatek: Constify static snd_soc_ops

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 <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20211012205521.14098-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-cs42448.c
sound/soc/mediatek/mt2701/mt2701-wm8960.c
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c