diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-16 14:25:17 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-20 06:28:40 -0500 |
commit | 44a45b55a72754e5c9ed047179fb269b530f45fc (patch) | |
tree | 6d9d0b31157daa02597ff8f7bdc3d7429096f5b7 /drivers/pinctrl/sh-pfc/pfc-sh7372.c | |
parent | f41a1efe63c6fc101b9c5b478c9dc22a43312b21 (diff) |
pinctrl: sh-pfc: ARM: Constify pins and cfg_regs arrays
The arrays are never modified, declare them as 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/pfc-sh7372.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-sh7372.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7372.c b/drivers/pinctrl/sh-pfc/pfc-sh7372.c index bcdd5c3cdcf0..e9c522bfb3df 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh7372.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7372.c | |||
@@ -844,7 +844,7 @@ static const u16 pinmux_data[] = { | |||
844 | #define SH7372_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) | 844 | #define SH7372_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) |
845 | #define SH7372_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD) | 845 | #define SH7372_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD) |
846 | 846 | ||
847 | static struct sh_pfc_pin pinmux_pins[] = { | 847 | static const struct sh_pfc_pin pinmux_pins[] = { |
848 | /* Table 57-1 (I/O and Pull U/D) */ | 848 | /* Table 57-1 (I/O and Pull U/D) */ |
849 | SH7372_PIN_IO_PD(0), SH7372_PIN_IO_PD(1), | 849 | SH7372_PIN_IO_PD(0), SH7372_PIN_IO_PD(1), |
850 | SH7372_PIN_O(2), SH7372_PIN_I_PD(3), | 850 | SH7372_PIN_O(2), SH7372_PIN_I_PD(3), |