regulator: core: set current constraints while setting machine constraints
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 20 Sep 2013 07:43:02 +0000 (13:13 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 20 Sep 2013 09:50:29 +0000 (10:50 +0100)
commitf8c1700dd7d2ce9b2238b20d364317b2968ac76b
tree6d42ffb2f3e7e9bee181e70745b7ee5e034874d2
parent00c877c69ba315d6c565a4df51c71b11e82cdeb8
regulator: core: set current constraints while setting machine constraints

Machine constraints is configured during regulator register. If current
constraints are provided through machine constraints then it is observed
that sometime the current configured on rail is out of range what machine
constraint has.

Set the current constraints when setting machine constraints to make
sure that rail's current is within the range of given machine constraints.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c