projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b54e1
)
gpiolib: constify label in gpio_device
author
Bartosz Golaszewski
<brgl@bgdev.pl>
Wed, 13 Dec 2017 11:25:19 +0000
(12:25 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 20 Dec 2017 08:01:50 +0000
(09:01 +0100)
This string is never modified. Make it const.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.h
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib.h
b/drivers/gpio/gpiolib.h
index
5e1f7cc
..
6e9228b
100644
(file)
--- a/
drivers/gpio/gpiolib.h
+++ b/
drivers/gpio/gpiolib.h
@@
-58,7
+58,7
@@
struct gpio_device {
struct gpio_desc *descs;
int base;
u16 ngpio;
- c
har
*label;
+ c
onst char
*label;
void *data;
struct list_head list;