From: Bartosz Golaszewski Date: Wed, 13 Dec 2017 11:25:19 +0000 (+0100) Subject: gpiolib: constify label in gpio_device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3b469b0a139e65a7c3da32f5481467f6bdcee837;p=openwrt%2Fstaging%2Fblogic.git gpiolib: constify label in gpio_device This string is never modified. Make it const. Signed-off-by: Bartosz Golaszewski Signed-off-by: Linus Walleij --- 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;