mfd: arizona: Switch to using devm_gpiod_get()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2019 00:28:32 +0000 (17:28 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 08:45:02 +0000 (08:45 +0000)
commit5da3f7673764906ce211497c8034ed764077f183
treefae1f36dcd8e8518e2a348a1c43c21b05198abda
parent7f0e60c751dc7252276230c7f8def447ffc0af4e
mfd: arizona: Switch to using devm_gpiod_get()

Now that gpiolib recognizes wlf,reset legacy GPIO and will handle it
even if DTS uses it without -gpio[s] suffix, we can switch to more
standard devm_gpiod_get() and later remove devm_gpiod_get_from_of_node().

Note that we will lose "arizona /RESET" custom GPIO label, but since we
do not set such custom label when using the modern binding, I opted to
not having it here either.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c