Skip to content

Commit 5b86706

Browse files
ArvindYadavCsMarc Zyngier
authored andcommitted
irqchip/gic-v3-its-platform-msi: 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 935bba7 commit 5b86706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static struct msi_domain_info its_pmsi_domain_info = {
8686
.chip = &its_pmsi_irq_chip,
8787
};
8888

89-
static struct of_device_id its_device_id[] = {
89+
static const struct of_device_id its_device_id[] = {
9090
{ .compatible = "arm,gic-v3-its", },
9191
{},
9292
};

0 commit comments

Comments
 (0)