diff options
author | Alexander Stein <alexanders83@web.de> | 2016-04-29 14:50:02 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-05-02 13:52:04 +0200 |
commit | 234b6513fcb9d98adf71fcb6110be4e719632988 (patch) | |
tree | 84fe442660082dcd1f9860a42a7c49a1a3790f50 /drivers/pinctrl | |
parent | 2bd07177213b2a7a7db49f4cebf9ddd1b7c17184 (diff) |
pinctrl: at91: Make at91_gpio_template const
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index f265ebe7b0a3..994292ff1b07 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -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, |