* [PATCH] ALSA: arm: aaci: Constify amba_id table
@ 2025-02-22 11:41 Krzysztof Kozlowski
2025-02-23 17:16 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-22 11:41 UTC (permalink / raw)
To: Russell King, Jaroslav Kysela, Takashi Iwai, linux-sound,
linux-kernel
Cc: Krzysztof Kozlowski
'struct amba_id' table is not modified so can be changed to const for
more safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
sound/arm/aaci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index c3340b8ff3da..243965615ef2 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -1061,7 +1061,7 @@ static void aaci_remove(struct amba_device *dev)
}
}
-static struct amba_id aaci_ids[] = {
+static const struct amba_id aaci_ids[] = {
{
.id = 0x00041041,
.mask = 0x000fffff,
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: arm: aaci: Constify amba_id table
2025-02-22 11:41 [PATCH] ALSA: arm: aaci: Constify amba_id table Krzysztof Kozlowski
@ 2025-02-23 17:16 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-02-23 17:16 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Russell King, Jaroslav Kysela, Takashi Iwai, linux-sound,
linux-kernel
On Sat, 22 Feb 2025 12:41:29 +0100,
Krzysztof Kozlowski wrote:
>
> 'struct amba_id' table is not modified so can be changed to const for
> more safety.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-23 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-22 11:41 [PATCH] ALSA: arm: aaci: Constify amba_id table Krzysztof Kozlowski
2025-02-23 17:16 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox