commit | 3b469b0a139e65a7c3da32f5481467f6bdcee837 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Wed Dec 13 12:25:19 2017 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Dec 20 09:01:50 2017 +0100 |
tree | 0c6c0553b6c70ab25e7aad445a2d550a0729e9b0 | |
parent | c4b54e138a2610b02cd655deddefa793c1871ef8 [diff] [blame] |
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>
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 5e1f7cc..6e9228b 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;