[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <25c6e5921cae5bbafb1d16bb5d820856df4541a2.1503506225.git.arvind.yadav.cs@gmail.com>
Date: Wed, 23 Aug 2017 22:08:43 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: jassisinghbrar@...il.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] mailbox: arm_mhu: constify amba_id
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/mailbox/arm_mhu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/arm_mhu.c b/drivers/mailbox/arm_mhu.c
index 99befa7..793678c 100644
--- a/drivers/mailbox/arm_mhu.c
+++ b/drivers/mailbox/arm_mhu.c
@@ -171,7 +171,7 @@ static int mhu_remove(struct amba_device *adev)
return 0;
}
-static struct amba_id mhu_ids[] = {
+static const struct amba_id mhu_ids[] = {
{
.id = 0x1bb098,
.mask = 0xffffff,
--
2.7.4
Powered by blists - more mailing lists