summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-20 20:27:46 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-08-23 09:21:54 +0200
commit4a14af45f70945cfa894188ec35a23e4aa394370 (patch)
tree477e4a6142aa9a5ffd9495552c8cb7b5f10a2e45 /drivers/gpio
parentgpio: add gpio_add_lookup_tables() to add several tables at once (diff)
downloadlinux-4a14af45f70945cfa894188ec35a23e4aa394370.tar.xz
linux-4a14af45f70945cfa894188ec35a23e4aa394370.zip
gpio: zevio: make gpio_chip const
Make this const as it is only used as a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-zevio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-zevio.c b/drivers/gpio/gpio-zevio.c
index e23ef7b9451d..3926ce9c2840 100644
--- a/drivers/gpio/gpio-zevio.c
+++ b/drivers/gpio/gpio-zevio.c
@@ -156,7 +156,7 @@ static int zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin)
return -ENXIO;
}
-static struct gpio_chip zevio_gpio_chip = {
+static const struct gpio_chip zevio_gpio_chip = {
.direction_input = zevio_gpio_direction_input,
.direction_output = zevio_gpio_direction_output,
.set = zevio_gpio_set,