diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-11-28 11:51:00 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:33:36 -0400 |
commit | d7a7ca5781fa2ac40319acc7125c487db5b26d91 (patch) | |
tree | 23ad6199057643515f3fb7d9abb9acd646670dd4 /drivers/pinctrl/sh-pfc/pfc-sh7203.c | |
parent | 35ad42719efcd25d310d1ad5f8b0f3a5c68e671d (diff) |
sh-pfc: Replace first_gpio and last_gpio with nr_gpios
The SoC information first_gpio field is always equal to 0, and the
last_gpio field is the index of the last entry in the pinmux_gpios
array. Replace the first_gpio and last_gpio fields by a nr_gpios field,
and initialize it to ARRAY_SIZE(pinmux_gpios).
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-sh7203.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-sh7203.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7203.c b/drivers/pinctrl/sh-pfc/pfc-sh7203.c index 22be49b3bd38..6cc67017e8fe 100644 --- a/drivers/pinctrl/sh-pfc/pfc-sh7203.c +++ b/drivers/pinctrl/sh-pfc/pfc-sh7203.c | |||
@@ -1580,10 +1580,9 @@ struct sh_pfc_soc_info sh7203_pinmux_info = { | |||
1580 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | 1580 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, |
1581 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | 1581 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, |
1582 | 1582 | ||
1583 | .first_gpio = GPIO_PA7, | ||
1584 | .last_gpio = GPIO_FN_LCD_DATA0, | ||
1585 | |||
1586 | .gpios = pinmux_gpios, | 1583 | .gpios = pinmux_gpios, |
1584 | .nr_gpios = ARRAY_SIZE(pinmux_gpios), | ||
1585 | |||
1587 | .cfg_regs = pinmux_config_regs, | 1586 | .cfg_regs = pinmux_config_regs, |
1588 | .data_regs = pinmux_data_regs, | 1587 | .data_regs = pinmux_data_regs, |
1589 | 1588 | ||