summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/sh_pfc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-16 20:25:15 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-12-20 12:26:54 +0100
commit6d5bddd5258c11f58cc6a6d17cd97ce5ad39a270 (patch)
tree3a7cb2e0aec15c4feab97b122d4689fc39b0c866 /drivers/pinctrl/sh-pfc/sh_pfc.h
parent9aecff583e64a15b1f8f7fa739abb4a8701f7c67 (diff)
downloadlinux-6d5bddd5258c11f58cc6a6d17cd97ce5ad39a270.tar.bz2
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/sh_pfc.h')
-rw-r--r--drivers/pinctrl/sh-pfc/sh_pfc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index cdd033851c21..25496c416de0 100644
--- a/drivers/pinctrl/sh-pfc/sh_pfc.h
+++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
@@ -95,11 +95,11 @@ struct pinmux_data_reg {
struct pinmux_irq {
int irq;
- short *gpios;
+ const short *gpios;
};
#define PINMUX_IRQ(irq_nr, ids...) \
- { .irq = irq_nr, .gpios = (short []) { ids, -1 } }
+ { .irq = irq_nr, .gpios = (const short []) { ids, -1 } }
struct pinmux_range {
u16 begin;