From: Bhumika Goyal Date: Sun, 20 Aug 2017 18:27:46 +0000 (+0530) Subject: gpio: zevio: make gpio_chip const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a14af45f70945cfa894188ec35a23e4aa394370;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- 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,