summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-07-16 21:08:21 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-07-27 12:20:28 +0200
commit4183afefd995e3472c10348998edd9f791eb523f (patch)
treef9b1630ae6f00f1c8935903c26a77c51ea3b6ebc /drivers/gpio
parentc21cde6fe1ba08b357c96071c71af6543f2863ec (diff)
downloadlinux-4183afefd995e3472c10348998edd9f791eb523f.tar.gz
linux-4183afefd995e3472c10348998edd9f791eb523f.tar.bz2
linux-4183afefd995e3472c10348998edd9f791eb523f.zip
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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-mpc8xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c
index da8e89205f37..0e2dbbb1645b 100644
--- a/drivers/gpio/gpio-mpc8xxx.c
+++ b/drivers/gpio/gpio-mpc8xxx.c
@@ -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", },