diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-16 23:25:15 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-20 15:26:54 +0400 |
commit | 6d5bddd5258c11f58cc6a6d17cd97ce5ad39a270 (patch) | |
tree | 3a7cb2e0aec15c4feab97b122d4689fc39b0c866 /drivers/pinctrl/sh-pfc/gpio.c | |
parent | 9aecff583e64a15b1f8f7fa739abb4a8701f7c67 (diff) | |
download | linux-6d5bddd5258c11f58cc6a6d17cd97ce5ad39a270.tar.xz |
pinctrl: sh-pfc: Constify IRQ GPIOs arrays
The arrays are never modified, make them const.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/gpio.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c index 63480815e1af..a9288ab01f7b 100644 --- a/drivers/pinctrl/sh-pfc/gpio.c +++ b/drivers/pinctrl/sh-pfc/gpio.c @@ -207,7 +207,7 @@ static int gpio_pin_to_irq(struct gpio_chip *gc, unsigned offset) unsigned int i, k; for (i = 0; i < pfc->info->gpio_irq_size; i++) { - short *gpios = pfc->info->gpio_irq[i].gpios; + const short *gpios = pfc->info->gpio_irq[i].gpios; for (k = 0; gpios[k] >= 0; k++) { if (gpios[k] == offset) |