projects
/
platform
/
kernel
/
linux-exynos.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
e23ef7b
..
3926ce9
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,