Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e62ebcdb authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman
Browse files

sh: shx3: Fix last GPIO index



A careless look at the code shows that the last entry in the
pinmux_gpios seems to be GPIO_FN_IRQOUT. 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_STATUS0.
Set the pinmux_info last_gpio field accordingly.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 451d0a90
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -572,7 +572,7 @@ static struct pinmux_info shx3_pinmux_info = {
	.mark		= { PINMUX_MARK_BEGIN,     PINMUX_MARK_END },
	.mark		= { PINMUX_MARK_BEGIN,     PINMUX_MARK_END },
	.function	= { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
	.function	= { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
	.first_gpio	= GPIO_PA7,
	.first_gpio	= GPIO_PA7,
	.last_gpio	= GPIO_FN_IRQOUT,
	.last_gpio	= GPIO_FN_STATUS0,
	.gpios		= shx3_pinmux_gpios,
	.gpios		= shx3_pinmux_gpios,
	.gpio_data	= shx3_pinmux_data,
	.gpio_data	= shx3_pinmux_data,
	.gpio_data_size	= ARRAY_SIZE(shx3_pinmux_data),
	.gpio_data_size	= ARRAY_SIZE(shx3_pinmux_data),