summaryrefslogtreecommitdiff
path: root/sound/soc/bcm
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-10-01 14:51:23 +0100
committerMark Brown <broonie@kernel.org>2024-10-01 14:51:23 +0100
commit0243533fe2fc6b9aa9843b5cd4c1b0088b5363eb (patch)
treefdf6fa8957e829d443b58bb378f8c090874c860e /sound/soc/bcm
parent6e393cce8c431847f602b3b366547028e0cb296c (diff)
parent8adff2ff73d8271c993549b106b26f301fa003cf (diff)
{ASoC,media}: constify snd_soc_component_driver
Merge series from Javier Carrasco <javier.carrasco.cruz@gmail.com>: Declare `snd_soc_component_driver` as const to move their declarations to read-only sections for the drivers that do not modify the struct after its declaration. Apart from a single case under media/, the affected drivers are members of the ASoC subsystem.
Diffstat (limited to 'sound/soc/bcm')
-rw-r--r--sound/soc/bcm/cygnus-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/bcm/cygnus-pcm.c b/sound/soc/bcm/cygnus-pcm.c
index 2d1e241d8367..4cb2fe10bcdc 100644
--- a/sound/soc/bcm/cygnus-pcm.c
+++ b/sound/soc/bcm/cygnus-pcm.c
@@ -707,7 +707,7 @@ static int cygnus_dma_new(struct snd_soc_component *component,
return 0;
}
-static struct snd_soc_component_driver cygnus_soc_platform = {
+static const struct snd_soc_component_driver cygnus_soc_platform = {
.open = cygnus_pcm_open,
.close = cygnus_pcm_close,
.prepare = cygnus_pcm_prepare,