regulator: max77686: Add suspend disable for some LDOs
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 29 Oct 2014 11:14:52 +0000 (12:14 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 31 Oct 2014 12:42:52 +0000 (12:42 +0000)
commit78ce612860ce80edbec9171b4a786ce131a9631c
tree2045b94a7aa9ed8af775b90dde80ccd260c9ceb6
parent68c5d1868bfed0643eb4d2c608cead41f6bf4132
regulator: max77686: Add suspend disable for some LDOs

Some LDOs of Maxim 77686 PMIC support disabling during system suspend
(LDO{2,6,7,8,10,11,12,14,15,16}). This was already implemented as part
of set_suspend_mode function. In that case the mode was one of:
 - disable,
 - normal mode,
 - low power mode.
However there are no bindings for setting the mode during suspend.

Add suspend disable for LDO regulators supporting this. Re-use existing
max77686_buck_set_suspend_disable() function. This helps reducing
energy consumption during system sleep.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77686.c