summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-zevio.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-20 21:27:46 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-08-23 10:21:54 +0300
commit4a14af45f70945cfa894188ec35a23e4aa394370 (patch)
tree477e4a6142aa9a5ffd9495552c8cb7b5f10a2e45 /drivers/gpio/gpio-zevio.c
parent3946d18765be0b0fe278bea4f87a54cf13858019 (diff)
downloadlinux-4a14af45f70945cfa894188ec35a23e4aa394370.tar.xz
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/gpio-zevio.c')
-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,