gpio: mpc8xxx: constify of_device_id
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 16 Jul 2015 19:08:21 +0000 (21:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Jul 2015 10:20:28 +0000 (12:20 +0200)
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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mpc8xxx.c

index da8e89205f3711f00257730d7c06fd6aa3cf19cc..0e2dbbb1645b08eeb0b5e0c2582abfbf8585e3c5 100644 (file)
@@ -334,7 +334,7 @@ static const struct irq_domain_ops mpc8xxx_gpio_irq_ops = {
        .xlate  = irq_domain_xlate_twocell,
 };
 
-static struct of_device_id mpc8xxx_gpio_ids[] = {
+static const struct of_device_id mpc8xxx_gpio_ids[] = {
        { .compatible = "fsl,mpc8349-gpio", },
        { .compatible = "fsl,mpc8572-gpio", },
        { .compatible = "fsl,mpc8610-gpio", },
This page took 0.027649 seconds and 5 git commands to generate.