Browse Source

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>
Bartosz Golaszewski 7 years ago
parent
commit
3b469b0a13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpio/gpiolib.h

+ 1 - 1
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;