public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats
@ 2024-06-17 12:57 Krzysztof Kozlowski
  2024-06-17 12:57 ` [PATCH v2 2/2] ASoC: " Krzysztof Kozlowski
  2024-06-18 14:22 ` [PATCH v2 1/2] ASoC: soc-dai.h: " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-17 12:57 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Support Opensource, Herve Codina, Shenghao Ding, Kevin Lu,
	Baojun Xu, linux-sound, linux-kernel, alsa-devel
  Cc: Krzysztof Kozlowski

The core ASoC code does not modify contents of the
'auto_selectable_formats' array passed in 'struct snd_soc_dai_ops', so
make it const for code safety.

Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Changes in v2:
1. Add Rb tag
---
 include/sound/soc-dai.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 15ef268c9845..279223c4ef5e 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -361,7 +361,7 @@ struct snd_soc_dai_ops {
 	 * see
 	 *	snd_soc_dai_get_fmt()
 	 */
-	u64 *auto_selectable_formats;
+	const u64 *auto_selectable_formats;
 	int num_auto_selectable_formats;
 
 	/* probe ordering - for components with runtime dependencies */
-- 
2.43.0


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

end of thread, other threads:[~2024-06-18 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 12:57 [PATCH v2 1/2] ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats Krzysztof Kozlowski
2024-06-17 12:57 ` [PATCH v2 2/2] ASoC: " Krzysztof Kozlowski
2024-06-17 13:07   ` Herve Codina
2024-06-18 14:22 ` [PATCH v2 1/2] ASoC: soc-dai.h: " Mark Brown

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