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)
commitc18604660ad02324dfc21de5dfd0c8d15e9070a5
tree34f2be7212a6060bc9a1641a812188ef750af37f
parente03273e48da64083ef66394b4338361886c9a64d
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