Skip to contentSkip to conversation

irqchip/gic-v2m:add const to of_device_id

PATCH Applied Xiang wangx 2 participants 2 messages Dec 9, 2021 – Dec 16, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/gic-v2m:add const to of_device_id

struct of_device_id should normally be const.

---
 drivers/irqchip/irq-gic-v2m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v2m.c +1 -1
index 9349fc68b81a..f2d252dff5f3 100644
@@ -405,7 +405,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
 	return ret;
 }
 
-static struct of_device_id gicv2m_device_id[] = {
+static const struct of_device_id gicv2m_device_id[] = {
 	{	.compatible	= "arm,gic-v2m-frame",	},
 	{},
 };
Signature · 1 line
2.20.1
merge bot Applied
#1 lore raw

[irqchip: irq/irqchip-next] irqchip/gic-v2m: Add const to of_device_id

The following commit has been merged into the irq/irqchip-next branch of irqchip:

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     c10f2f8b5d8027c1ea77f777f2d16cb9043a6c09
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/c10f2f8b5d8027c1ea77f777f2d16cb9043a6c09
Author:        Xiang wangx <[email protected]>
AuthorDate:    Thu, 09 Dec 2021 21:24:53 +08:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Thu, 16 Dec 2021 15:19:52 

irqchip/gic-v2m: Add const to of_device_id

struct of_device_id should normally be const.

---
 drivers/irqchip/irq-gic-v2m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v2m.c +1 -1
index 9349fc6..f2d252d 100644
@@ -405,7 +405,7 @@ err_free_v2m:
 	return ret;
 }
 
-static struct of_device_id gicv2m_device_id[] = {
+static const struct of_device_id gicv2m_device_id[] = {
 	{	.compatible	= "arm,gic-v2m-frame",	},
 	{},
 };