]> git.baikalelectronics.ru Git - kernel.git/commit
sh: shx3: Fix last GPIO index
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Dec 2012 22:50:41 +0000 (23:50 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:24:20 +0000 (09:24 +0900)
commit6832575b6969b1e4fe6756031411f8364f69ca5c
tree628feeea979bad5b2703644f1d578f8b1ffc0bd7
parentb0cf565bd70e8bc662e7eb6490350232eb560a41
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: 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>
arch/sh/kernel/cpu/sh4a/pinmux-shx3.c