Skip to content

Commit

Permalink
sh: sh7786: Fix last GPIO index
Browse files Browse the repository at this point in the history
A careless look at the code shows that the last entry in the
pinmux_gpios seems to be GPIO_FN_FSE. However, entries are ordered by
the GPIO number, as the PINMUX_GPIO macro is expended to an indexed
array initializer. The last entry in the array is thus GPIO_FN_IRL4. Set
the pinmux_info last_gpio field accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent cc88ec4 commit 451d0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ static struct pinmux_info sh7786_pinmux_info = {
.function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },

.first_gpio = GPIO_PA7,
.last_gpio = GPIO_FN_FSE,
.last_gpio = GPIO_FN_IRL4,

.gpios = pinmux_gpios,
.cfg_regs = pinmux_config_regs,
Expand Down

0 comments on commit 451d0a9

Please sign in to comment.