regulator: max77660: do not disable rail if external control
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 24 Jul 2013 08:43:12 +0000 (13:43 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:33:26 +0000 (13:33 -0700)
commit347278f4e03bc68fb60d091d4a0e36210a47e065
tree2f1440c0c9936ee681318718c98b437799b8224c
parenta6ed5bfd33957675348b3bab5f5b1ecfb8de1d61
regulator: max77660: do not disable rail if external control

If any rail is selected for the external control then do not
disable the rail manually.

Also enable the always-on for externally controlled rail.

Enable the full regualtor constraint to disable the unused rails.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/245102
(cherry picked from commit 00f7dd682c3ef702e4228f375b586ab590533956)

Change-Id: Ie60bfec0ed077312fd5014cb25cc0a754cacfe35
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/252815
drivers/regulator/max77660-regulator.c
include/linux/mfd/max77660/max77660-core.h