Skip to content

Commit 935bba7

Browse files
ArvindYadavCsMarc Zyngier
authored andcommitted
irqchip/gic-v3-its: Make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent e0de91a commit 935bba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ int its_cpu_init(void)
18041804
return 0;
18051805
}
18061806

1807-
static struct of_device_id its_device_id[] = {
1807+
static const struct of_device_id its_device_id[] = {
18081808
{ .compatible = "arm,gic-v3-its", },
18091809
{},
18101810
};

0 commit comments

Comments
 (0)