]> git.baikalelectronics.ru Git - kernel.git/commitdiff
gpio: madera: Add missing const
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 16 Jan 2019 11:28:44 +0000 (11:28 +0000)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 14 Feb 2019 14:14:37 +0000 (15:14 +0100)
madera_gpio_chip is only used as a template so it can be marked as const.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-madera.c

index 7ba68d1a093242678941c02599cc8155d9ed0862..c9dad0543672a1e1c3e9cfe18e1752abfadf9b50 100644 (file)
@@ -107,7 +107,7 @@ static void madera_gpio_set(struct gpio_chip *chip, unsigned int offset,
                         MADERA_GPIO1_CTRL_1 + reg_offset, ret);
 }
 
-static struct gpio_chip madera_gpio_chip = {
+static const struct gpio_chip madera_gpio_chip = {
        .label                  = "madera",
        .owner                  = THIS_MODULE,
        .request                = gpiochip_generic_request,