aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-sunxi.h
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2014-04-10 09:52:43 -0400
committerLinus Walleij <linus.walleij@linaro.org>2014-04-22 07:42:36 -0400
commitd83c82ce7ccd7acd9aab052aa25d40371cde62e4 (patch)
tree381559c489f46d9af08dc5cc065c8177e4e9d4e8 /drivers/pinctrl/pinctrl-sunxi.h
parent0aba61787fe5fde55dd793119422ef9af0311a70 (diff)
pinctrl: sunxi: support multiple pin controller
Add support for multiple pin controller instances. First remove the static definition of the sunxi gpio chip struct and fill the dynamically struct instead. Then define a new pin_base field in the sunxi_pinctrl_desc which will be used to specify the gpiochip base pin. Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-sunxi.h')
-rw-r--r--drivers/pinctrl/pinctrl-sunxi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-sunxi.h b/drivers/pinctrl/pinctrl-sunxi.h
index ed3c4d709863..35d15b229a70 100644
--- a/drivers/pinctrl/pinctrl-sunxi.h
+++ b/drivers/pinctrl/pinctrl-sunxi.h
@@ -450,6 +450,7 @@ struct sunxi_pinctrl_desc {
450 int npins; 450 int npins;
451 struct pinctrl_gpio_range *ranges; 451 struct pinctrl_gpio_range *ranges;
452 int nranges; 452 int nranges;
453 unsigned pin_base;
453}; 454};
454 455
455struct sunxi_pinctrl_function { 456struct sunxi_pinctrl_function {