]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: constify snd_soc_component_driver struct
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 29 Jul 2024 09:37:38 +0000 (11:37 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:10:48 +0000 (01:10 +0200)
commit8adff2ff73d8271c993549b106b26f301fa003cf
tree96e67672a96b4537d4ca7db2491fedc1281b6a32
parent46f2dd5ce5723a2c07051d332f8f1c4c4ce548f3
ASoC: constify snd_soc_component_driver struct

Declare `snd_soc_component_driver` as const to move it to a read-only
section for the drivers that do not modify the struct after its
declaration.

The affected drivers only pass this struct to
`devm_snd_soc_register_component()`, whose argument is const and
therefore does not modify the content of the struct.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240729-const_snd_soc_component_driver-v2-2-1994f44f1ec2@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/au1x/dbdma2.c
sound/soc/au1x/dma.c
sound/soc/bcm/cygnus-pcm.c
sound/soc/codecs/cpcap.c
sound/soc/codecs/pcm186x.c
sound/soc/codecs/pcm5102a.c
sound/soc/codecs/spdif_receiver.c
sound/soc/codecs/spdif_transmitter.c
sound/soc/codecs/tas6424.c
sound/soc/stm/stm32_adfsdm.c
sound/soc/uniphier/evea.c