Skip to content

Commit

Permalink
gpio: zevio: make gpio_chip const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bhumika Goyal authored and Linus Walleij committed Aug 23, 2017
1 parent 3946d18 commit 4a14af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-zevio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a14af4

Please sign in to comment.