gpiolib: constify label in gpio_device
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 13 Dec 2017 11:25:19 +0000 (12:25 +0100)
committerLinus 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

index 5e1f7cc..6e9228b 100644 (file)
@@ -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;