]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: arizona: Update reset pin to use GPIOD
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 12 Mar 2018 15:52:00 +0000 (15:52 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commitd6ea6e947ba8e5d423a47e9e94f1f19c445ced91
tree34f2be7212a6060bc9a1641a812188ef750af37f
parent7bc2f7be1d0a90499a52d14ac45afcf47086f444
mfd: arizona: Update reset pin to use GPIOD

Now GPIOD has support for both pdata systems and for non-standard DT
bindings the Arizona reset GPIO can be converted to use it. Worth
noting gpiod_set_raw_value_cansleep is used to match the behaviour
of the old GPIOs. This is because the part is fairly widely used and
it is unknown how many DTs are correctly setting active low through
device tree, so to avoid breaking any existing users it is best to
match the previous behaviour.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c
include/linux/mfd/arizona/pdata.h