Skip to content

Commit 4183afe

Browse files
Uwe Kleine-Königlinusw
authored andcommitted
gpio: mpc8xxx: constify of_device_id
This variable is not modified in the driver and all functions it it passed to don't change it either. So it can and should be marked const. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent c21cde6 commit 4183afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-mpc8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static const struct irq_domain_ops mpc8xxx_gpio_irq_ops = {
334334
.xlate = irq_domain_xlate_twocell,
335335
};
336336

337-
static struct of_device_id mpc8xxx_gpio_ids[] = {
337+
static const struct of_device_id mpc8xxx_gpio_ids[] = {
338338
{ .compatible = "fsl,mpc8349-gpio", },
339339
{ .compatible = "fsl,mpc8572-gpio", },
340340
{ .compatible = "fsl,mpc8610-gpio", },

0 commit comments

Comments
 (0)