summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.h
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-12-13 12:25:19 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-12-20 09:01:50 +0100
commit3b469b0a139e65a7c3da32f5481467f6bdcee837 (patch)
tree0c6c0553b6c70ab25e7aad445a2d550a0729e9b0 /drivers/gpio/gpiolib.h
parentc4b54e138a2610b02cd655deddefa793c1871ef8 (diff)
downloadlinux-3b469b0a139e65a7c3da32f5481467f6bdcee837.tar.bz2
gpiolib: constify label in gpio_device
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>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r--drivers/gpio/gpiolib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index 5e1f7cc6eeb6..6e9228b94437 100644
--- 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;
- char *label;
+ const char *label;
void *data;
struct list_head list;