]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: arizona-ldo1: Look up a descriptor and pass to the core
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:24 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 06:42:53 +0000 (15:42 +0900)
commite1739e86f0cb9c48e8745a610e6981a4e24cadad
tree7634dcc5616e9c13d6ffb89025ca9b3c2f9102af
parent54557ad9737e28b06b632cce723ef2373fe6bf12
regulator: arizona-ldo1: Look up a descriptor and pass to the core

Instead of passing a global GPIO number, pass a descriptor looked
up with the standard devm_gpiod_get_optional() call.

We have augmented the GPIO core to look up the regulator special
GPIO "wlf,ldoena" in commit 6a537d48461d
"gpio: of: Support regulator nonstandard GPIO properties".

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-s3c64xx/mach-crag6410-module.c
drivers/regulator/arizona-ldo1.c
include/linux/regulator/arizona-ldo1.h