[PATCH] ALSA: arm: aaci: Constify amba_id table

Krzysztof Kozlowski posted 1 patch 11 months, 3 weeks ago
sound/arm/aaci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] ALSA: arm: aaci: Constify amba_id table
Posted by Krzysztof Kozlowski 11 months, 3 weeks ago
'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
Re: [PATCH] ALSA: arm: aaci: Constify amba_id table
Posted by Takashi Iwai 11 months, 2 weeks ago
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