[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250222-mailbox-const-arm-id-v1-2-d60589215a24@linaro.org>
Date: Sat, 22 Feb 2025 12:36:18 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Jassi Brar <jassisinghbrar@...il.com>,
Viresh Kumar <viresh.kumar@...aro.org>,
Tushar Khandelwal <Tushar.Khandelwal@....com>
Cc: linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH 2/5] mailbox: pl320-ipc: Constify amba_id table
'struct amba_id' table is not modified so can be changed to const for
more safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
---
drivers/mailbox/pl320-ipc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/pl320-ipc.c b/drivers/mailbox/pl320-ipc.c
index 0b807bbcbde07255116db40cc9d9028711135fe8..606f26a2a6fde4adce0c1a165a9746a1f2b639d0 100644
--- a/drivers/mailbox/pl320-ipc.c
+++ b/drivers/mailbox/pl320-ipc.c
@@ -152,7 +152,7 @@ static int pl320_probe(struct amba_device *adev, const struct amba_id *id)
return ret;
}
-static struct amba_id pl320_ids[] = {
+static const struct amba_id pl320_ids[] = {
{
.id = 0x00041320,
.mask = 0x000fffff,
--
2.43.0
Powered by blists - more mailing lists