diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-02-16 12:47:05 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:33:53 -0400 |
commit | cd3c1beecfeb757b16904386ea474d3c272de4ee (patch) | |
tree | 7c730733d2e7e236b22f85d97f18f530b418726f /drivers/pinctrl/sh-pfc/pfc-sh7723.c | |
parent | 861601de101215494e2cc7918e8633d63da490ef (diff) |
sh-pfc: Constify all SoC data
None of the SoC data need to be modified. Constify it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-sh7723.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-sh7723.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7723.c b/drivers/pinctrl/sh-pfc/pfc-sh7723.c index d8797ff4339b..07ad1d8d6c8b 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh7723.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7723.c | |||
@@ -350,7 +350,7 @@ enum { | |||
350 | PINMUX_MARK_END, | 350 | PINMUX_MARK_END, |
351 | }; | 351 | }; |
352 | 352 | ||
353 | static pinmux_enum_t pinmux_data[] = { | 353 | static const pinmux_enum_t pinmux_data[] = { |
354 | /* PTA GPIO */ | 354 | /* PTA GPIO */ |
355 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), | 355 | PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT), |
356 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), | 356 | PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT), |
@@ -1143,7 +1143,7 @@ static struct sh_pfc_pin pinmux_pins[] = { | |||
1143 | 1143 | ||
1144 | #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins) | 1144 | #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins) |
1145 | 1145 | ||
1146 | static struct pinmux_func pinmux_func_gpios[] = { | 1146 | static const struct pinmux_func pinmux_func_gpios[] = { |
1147 | /* SCIF0 */ | 1147 | /* SCIF0 */ |
1148 | GPIO_FN(SCIF0_PTT_TXD), | 1148 | GPIO_FN(SCIF0_PTT_TXD), |
1149 | GPIO_FN(SCIF0_PTT_RXD), | 1149 | GPIO_FN(SCIF0_PTT_RXD), |
@@ -1515,7 +1515,7 @@ static struct pinmux_func pinmux_func_gpios[] = { | |||
1515 | GPIO_FN(IDEA0), | 1515 | GPIO_FN(IDEA0), |
1516 | }; | 1516 | }; |
1517 | 1517 | ||
1518 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | 1518 | static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
1519 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { | 1519 | { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) { |
1520 | PTA7_FN, PTA7_OUT, 0, PTA7_IN, | 1520 | PTA7_FN, PTA7_OUT, 0, PTA7_IN, |
1521 | PTA6_FN, PTA6_OUT, 0, PTA6_IN, | 1521 | PTA6_FN, PTA6_OUT, 0, PTA6_IN, |
@@ -1789,7 +1789,7 @@ static struct pinmux_cfg_reg pinmux_config_regs[] = { | |||
1789 | {} | 1789 | {} |
1790 | }; | 1790 | }; |
1791 | 1791 | ||
1792 | static struct pinmux_data_reg pinmux_data_regs[] = { | 1792 | static const struct pinmux_data_reg pinmux_data_regs[] = { |
1793 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { | 1793 | { PINMUX_DATA_REG("PADR", 0xa4050120, 8) { |
1794 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, | 1794 | PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA, |
1795 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } | 1795 | PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA } |
@@ -1885,7 +1885,7 @@ static struct pinmux_data_reg pinmux_data_regs[] = { | |||
1885 | { }, | 1885 | { }, |
1886 | }; | 1886 | }; |
1887 | 1887 | ||
1888 | struct sh_pfc_soc_info sh7723_pinmux_info = { | 1888 | const struct sh_pfc_soc_info sh7723_pinmux_info = { |
1889 | .name = "sh7723_pfc", | 1889 | .name = "sh7723_pfc", |
1890 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | 1890 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, |
1891 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | 1891 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, |