projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3946d18
)
gpio: zevio: make gpio_chip const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sun, 20 Aug 2017 18:27:46 +0000
(23:57 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 23 Aug 2017 07:21:54 +0000
(09:21 +0200)
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>
drivers/gpio/gpio-zevio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-zevio.c
b/drivers/gpio/gpio-zevio.c
index e23ef7b9451d9546bb6fe7a7dc8e562d9c2a1fe4..3926ce9c28405beb4fed2d94b3baecd0f2490c11 100644
(file)
--- 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,