irqchip/gic-v2m:add const to of_device_id
Subsystems (2)
PATCH 1/1 irqchip/gic-v2m:add const to of_device_id
struct of_device_id should normally be const.
Signed-off-by Xiang wangx <[email protected]>
--- drivers/irqchip/irq-gic-v2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v2m.c +1 -1
@@ -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
[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.
Signed-off-by Xiang wangx <[email protected]>
Signed-off-by Marc Zyngier <[email protected]>
--- drivers/irqchip/irq-gic-v2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v2m.c +1 -1
@@ -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" , }, {}, };