Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718518
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mailbox: arm_mhu: constify amba_id |
| Date | 2017-08-23 18:40 +0200 |
| Message-ID | <uhGRe-2TW-47@gated-at.bofh.it> (permalink) |
| References | <uhGRd-2TW-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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@gmail.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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] mailbox: pl320: constify amba_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-23 18:40 +0200 [PATCH] mailbox: arm_mhu: constify amba_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-23 18:40 +0200
csiph-web