[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250222-mailbox-const-arm-id-v1-4-d60589215a24@linaro.org>
Date: Sat, 22 Feb 2025 12:36:20 +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 4/5] mailbox: arm_mhu_db: 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/arm_mhu_db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/arm_mhu_db.c b/drivers/mailbox/arm_mhu_db.c
index 27a510d46908236f371c33d40f2265aa5bc55b1f..9e937b09c5fbcee146faa1f954ca82d8404652ef 100644
--- a/drivers/mailbox/arm_mhu_db.c
+++ b/drivers/mailbox/arm_mhu_db.c
@@ -328,7 +328,7 @@ static int mhu_db_probe(struct amba_device *adev, const struct amba_id *id)
return 0;
}
-static struct amba_id mhu_ids[] = {
+static const struct amba_id mhu_ids[] = {
{
.id = 0x1bb098,
.mask = 0xffffff,
--
2.43.0
Powered by blists - more mailing lists