regulator: max8973: add mechanism to enable/disable through GPIO
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 23 Apr 2015 10:40:24 +0000 (16:10 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 22 May 2015 12:47:33 +0000 (13:47 +0100)
commit69eb0980ab4ced06f7c2b4774575337ce32912fb
tree3aeacd3144999f69e9bd679829f21a0f29abe301
parentc2ffa9737878ad9843d1e0e904dc9a086438aff8
regulator: max8973: add mechanism to enable/disable through GPIO

MAX8973 supports the voltage output enable/disable through its EN
pin. This EN pin can be connected through GPIO from host processor.
Add support to provide GPIO number from platform/DT and if it is
valid GPIO then enable external control default.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/max8973-regulator.txt
drivers/regulator/max8973-regulator.c
include/linux/regulator/max8973-regulator.h