]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: sirf: switch to using allocated state container
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Apr 2014 21:08:02 +0000 (23:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 May 2014 08:42:04 +0000 (10:42 +0200)
commit294d1351ff47726f0f110b88e816cbafe89512fb
treef5964e4cad2aea5beaf74665fdd285778a36bcaf
parentca6c55189a631f3380ff0a28f90d920a84e60d7b
pinctrl: sirf: switch to using allocated state container

This rewrites the SIRF pinctrl driver to allocate a state container
for the GPIO chip, just as is done for the pin controller, and
use the gpiochip_add_pin_range() to add the range from the gpiochip
side rather than adding the range from the pinctrl side.

All resulting changes are done in order to pass around a state
container rather than refer to a static global object.

Acked-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-sirf.c