diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-20 23:57:46 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-23 09:21:54 +0200 |
commit | 4a14af45f70945cfa894188ec35a23e4aa394370 (patch) | |
tree | 477e4a6142aa9a5ffd9495552c8cb7b5f10a2e45 /drivers/gpio | |
parent | 3946d18765be0b0fe278bea4f87a54cf13858019 (diff) | |
download | linux-stable-4a14af45f70945cfa894188ec35a23e4aa394370.tar.gz linux-stable-4a14af45f70945cfa894188ec35a23e4aa394370.tar.bz2 linux-stable-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.c | 2 |
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, |