[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240729-const_snd_soc_component_driver-v2-0-1994f44f1ec2@gmail.com>
Date: Mon, 29 Jul 2024 11:37:36 +0200
From: Javier Carrasco <javier.carrasco.cruz@...il.com>
To: Tim Harvey <tharvey@...eworks.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Ray Jui <rjui@...adcom.com>, Scott Branden <sbranden@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Shenghao Ding <shenghao-ding@...com>, Kevin Lu <kevin-lu@...com>,
Baojun Xu <baojun.xu@...com>, Olivier Moysan <olivier.moysan@...s.st.com>,
Arnaud Pouliquen <arnaud.pouliquen@...s.st.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>,
Masami Hiramatsu <mhiramat@...nel.org>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-sound@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
alsa-devel@...a-project.org, linux-stm32@...md-mailman.stormreply.com,
Javier Carrasco <javier.carrasco.cruz@...il.com>
Subject: [PATCH v2 0/2] {ASoC,media}: constify snd_soc_component_driver
when used as read-only
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.
To: Tim Harvey <tharvey@...eworks.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>
To: Liam Girdwood <lgirdwood@...il.com>
To: Mark Brown <broonie@...nel.org>
To: Jaroslav Kysela <perex@...ex.cz>
To: Takashi Iwai <tiwai@...e.com>
To: Ray Jui <rjui@...adcom.com>
To: Scott Branden <sbranden@...adcom.com>
To: Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>
To: Shenghao Ding <shenghao-ding@...com>
To: Kevin Lu <kevin-lu@...com>
To: Baojun Xu <baojun.xu@...com>
To: Olivier Moysan <olivier.moysan@...s.st.com>
To: Arnaud Pouliquen <arnaud.pouliquen@...s.st.com>
To: Maxime Coquelin <mcoquelin.stm32@...il.com>
To: Alexandre Torgue <alexandre.torgue@...s.st.com>
To: Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: linux-media@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-sound@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org
Cc: alsa-devel@...a-project.org
Cc: linux-stm32@...md-mailman.stormreply.com
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@...il.com>
Changes in v2:
- drop cs43130 and sti-sas, as they modifiy the struct in the probe
function.
- Link to v1: https://lore.kernel.org/r/20240725-const_snd_soc_component_driver-v1-0-3d7ee08e129b@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/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/tas6424.c | 2 +-
sound/soc/stm/stm32_adfsdm.c | 2 +-
sound/soc/uniphier/evea.c | 2 +-
12 files changed, 13 insertions(+), 13 deletions(-)
---
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
change-id: 20240725-const_snd_soc_component_driver-b9629a95b948
Best regards,
--
Javier Carrasco <javier.carrasco.cruz@...il.com>
Powered by blists - more mailing lists