pinctrl: sunxi: support multiple pin controller
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Apr 2014 13:52:43 +0000 (15:52 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 11:42:36 +0000 (13:42 +0200)
commitd83c82ce7ccd7acd9aab052aa25d40371cde62e4
tree381559c489f46d9af08dc5cc065c8177e4e9d4e8
parent0aba61787fe5fde55dd793119422ef9af0311a70
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>
drivers/pinctrl/pinctrl-sunxi.c
drivers/pinctrl/pinctrl-sunxi.h