public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* [PATCH 0/2] {ASoC,media}: constify snd_soc_component_driver struct
@ 2024-07-25 10:31 Javier Carrasco
  2024-07-25 10:31 ` [PATCH 1/2] media: i2c: tda1997x: " Javier Carrasco
  2024-07-25 10:31 ` [PATCH 2/2] ASoC: " Javier Carrasco
  0 siblings, 2 replies; 7+ messages in thread
From: Javier Carrasco @ 2024-07-25 10:31 UTC (permalink / raw)
  To: Tim Harvey, Mauro Carvalho Chehab, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Ray Jui, Scott Branden,
	Broadcom internal kernel review list, David Rhodes,
	Richard Fitzgerald, Shenghao Ding, Kevin Lu, Baojun Xu,
	Olivier Moysan, Arnaud Pouliquen, Maxime Coquelin,
	Alexandre Torgue, Kunihiko Hayashi, Masami Hiramatsu
  Cc: linux-media, linux-kernel, linux-sound, linux-arm-kernel,
	alsa-devel, patches, linux-stm32, Javier Carrasco

The `snd_soc_component_driver` struct is never modified after its
declaration, and its only direct user
`devm_snd_soc_register_component()` expects a constant value anyway.

Declare `snd_soc_component_driver` as const to move their declarations
to read-only sections.

Apart from a single case under media/, the affected drivers are members
of the ASoC subsystem.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (2):
      media: i2c: tda1997x: constify snd_soc_component_driver struct
      ASoC: constify snd_soc_component_driver struct

 drivers/media/i2c/tda1997x.c         | 2 +-
 sound/soc/au1x/dbdma2.c              | 2 +-
 sound/soc/au1x/dma.c                 | 2 +-
 sound/soc/bcm/cygnus-pcm.c           | 2 +-
 sound/soc/codecs/cpcap.c             | 2 +-
 sound/soc/codecs/cs43130.c           | 2 +-
 sound/soc/codecs/pcm186x.c           | 4 ++--
 sound/soc/codecs/pcm5102a.c          | 2 +-
 sound/soc/codecs/spdif_receiver.c    | 2 +-
 sound/soc/codecs/spdif_transmitter.c | 2 +-
 sound/soc/codecs/sti-sas.c           | 2 +-
 sound/soc/codecs/tas6424.c           | 2 +-
 sound/soc/stm/stm32_adfsdm.c         | 2 +-
 sound/soc/uniphier/evea.c            | 2 +-
 14 files changed, 15 insertions(+), 15 deletions(-)
---
base-commit: 864b1099d16fc7e332c3ad7823058c65f890486c
change-id: 20240725-const_snd_soc_component_driver-b9629a95b948

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-31  8:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 10:31 [PATCH 0/2] {ASoC,media}: constify snd_soc_component_driver struct Javier Carrasco
2024-07-25 10:31 ` [PATCH 1/2] media: i2c: tda1997x: " Javier Carrasco
2024-07-25 10:31 ` [PATCH 2/2] ASoC: " Javier Carrasco
2024-07-26  8:13   ` Charles Keepax
2024-07-26  9:07     ` Javier Carrasco
2024-07-26  9:39   ` kernel test robot
2024-07-26 11:27   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox