]> 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)
commitfd4858fb78e84b345f70f0a81521c2892e314358
tree34f2be7212a6060bc9a1641a812188ef750af37f
parentc4b6e4fb14ebe7b91dde4123261129a7ce39c3d5
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