]> git.baikalelectronics.ru Git - kernel.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)
commit7e655a764957e711148e2dda0fb2014d024e7be8
tree7634dcc5616e9c13d6ffb89025ca9b3c2f9102af
parent8dd9c9115079425ee64bde392b6fe9881f370c62
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 ae8c61793c55
"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