]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: Constify static snd_soc_dai_ops structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 22 Sep 2021 20:54:38 +0000 (22:54 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:01:03 +0000 (13:01 +0100)
commit1159a5556687a87cfe6c140590be4996526dd958
tree1597b49bcef7172be364fe89f62ad1dd08c2de6d
parentac74e7f6ae5c70108154c2333d78d0dcf103fe58
ASoC: tegra: 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: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/20210922205438.34519-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_adx.c
sound/soc/tegra/tegra210_amx.c
sound/soc/tegra/tegra210_mixer.c
sound/soc/tegra/tegra210_mvc.c
sound/soc/tegra/tegra210_sfc.c