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:
aac1e3c
)
gpio: madera: Add missing const
author
Charles Keepax
<
[email protected]
>
Wed, 16 Jan 2019 11:28:44 +0000
(11:28 +0000)
committer
Bartosz Golaszewski
<
[email protected]
>
Thu, 14 Feb 2019 14:14:37 +0000
(15:14 +0100)
madera_gpio_chip is only used as a template so it can be marked as const.
Signed-off-by: Charles Keepax <
[email protected]
>
Signed-off-by: Bartosz Golaszewski <
[email protected]
>
drivers/gpio/gpio-madera.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-madera.c
b/drivers/gpio/gpio-madera.c
index 7ba68d1a093242678941c02599cc8155d9ed0862..c9dad0543672a1e1c3e9cfe18e1752abfadf9b50 100644
(file)
--- a/
drivers/gpio/gpio-madera.c
+++ b/
drivers/gpio/gpio-madera.c
@@
-107,7
+107,7
@@
static void madera_gpio_set(struct gpio_chip *chip, unsigned int offset,
MADERA_GPIO1_CTRL_1 + reg_offset, ret);
}
-static struct gpio_chip madera_gpio_chip = {
+static
const
struct gpio_chip madera_gpio_chip = {
.label = "madera",
.owner = THIS_MODULE,
.request = gpiochip_generic_request,