projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd0717
)
pinctrl: at91: Make at91_gpio_template const
author
Alexander Stein
<alexanders83@web.de>
Fri, 29 Apr 2016 12:50:02 +0000
(14:50 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 2 May 2016 11:52:04 +0000
(13:52 +0200)
This template is only assigned, so make it const.
Signed-off-by: Alexander Stein <alexanders83@web.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinctrl-at91.c
b/drivers/pinctrl/pinctrl-at91.c
index f265ebe7b0a3670ccab196a8c191784dc6aef311..994292ff1b07e88e099164c515951c1acf4a67d1 100644
(file)
--- a/
drivers/pinctrl/pinctrl-at91.c
+++ b/
drivers/pinctrl/pinctrl-at91.c
@@
-1652,7
+1652,7
@@
static int at91_gpio_of_irq_setup(struct platform_device *pdev,
}
/* This structure is replicated for each GPIO block allocated at probe time */
-static struct gpio_chip at91_gpio_template = {
+static
const
struct gpio_chip at91_gpio_template = {
.request = gpiochip_generic_request,
.free = gpiochip_generic_free,
.get_direction = at91_gpio_get_direction,