pinctrl: add function to retrieve range from pin
commit9afbefb227792a3c195085d662050dcca748f521
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Nov 2012 13:25:07 +0000 (20 14:25 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 21 Nov 2012 07:55:12 +0000 (21 08:55 +0100)
tree6ca22f39a4d97a73b2fb37472af596c159210ea7
parent8f23ca1a73a096f21e6618d8e23df613daa5e532
pinctrl: add function to retrieve range from pin

This adds a function to the pinctrl core to retrieve the GPIO
range associated with a certain pin for a certain controller.
This is needed when a pinctrl driver want to look up the
corresponding struct gpio_chip for a certain pin. As the
GPIO drivers can now create these ranges themselves, the
pinctrl driver no longer knows about all its associated GPIO
chips.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
include/linux/pinctrl/pinctrl.h