pinctrl: at91: Make at91_gpio_template const
authorAlexander Stein <alexanders83@web.de>
Fri, 29 Apr 2016 12:50:02 +0000 (14:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 May 2016 11:52:04 +0000 (13:52 +0200)
This template is only assigned, so make it const.

Signed-off-by: Alexander Stein <alexanders83@web.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c

index f265ebe7b0a3670ccab196a8c191784dc6aef311..994292ff1b07e88e099164c515951c1acf4a67d1 100644 (file)
@@ -1652,7 +1652,7 @@ static int at91_gpio_of_irq_setup(struct platform_device *pdev,
 }
 
 /* This structure is replicated for each GPIO block allocated at probe time */
-static struct gpio_chip at91_gpio_template = {
+static const struct gpio_chip at91_gpio_template = {
        .request                = gpiochip_generic_request,
        .free                   = gpiochip_generic_free,
        .get_direction          = at91_gpio_get_direction,