regulator: gpio: Get enable GPIO using GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:23 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 29 May 2018 14:55:12 +0000 (15:55 +0100)
commit37bed97f00734ce329495823d9682181028b51e4
treed320f47ce4a7a7c657cc87a79e3953a7928a9869
parent6059577cb28d8b15d2b7dad51eb90d885f1ed9ab
regulator: gpio: Get enable GPIO using GPIO descriptor

We augment the GPIO regulator to get the *enable* regulator
GPIO line (not the other lines) using a descriptor rather than
a global number.

We then pass this into the regulator core which has been
prepared to hande enable descriptors in a separate patch.

Switch over the two boardfiles using this facility and clean
up so we only pass descriptors around.

Cc: Philipp Zabel <philipp.zabel@gmail.com> # HX4700/Magician maintainer
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-pxa/hx4700.c
arch/arm/mach-pxa/magician.c
drivers/regulator/gpio-regulator.c
include/linux/regulator/gpio-regulator.h