sh-pfc: Add function to retrieve a pin instance from its pin number
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 14 Feb 2013 21:35:09 +0000 (22:35 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 15 Mar 2013 12:33:39 +0000 (13:33 +0100)
commit934cb02bab9003bf65afe73e9146a1ea63b26c40
tree4388d27ec6313aa85bf0f9829eb05fbf89dfae4b
parent0b73ee5d534cc6dcb96efb9eac4cf96b40910911
sh-pfc: Add function to retrieve a pin instance from its pin number

This prepares support for sparse pin numbering. The function currently
just performs and indexed lookup in the pins array.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/gpio.c
drivers/pinctrl/sh-pfc/pinctrl.c