Skip to content

Commit 4a14af4

Browse files
goyalbhumikalinusw
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 3946d18 commit 4a14af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-zevio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin)
156156
return -ENXIO;
157157
}
158158

159-
static struct gpio_chip zevio_gpio_chip = {
159+
static const struct gpio_chip zevio_gpio_chip = {
160160
.direction_input = zevio_gpio_direction_input,
161161
.direction_output = zevio_gpio_direction_output,
162162
.set = zevio_gpio_set,

0 commit comments

Comments
 (0)