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)
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

Simple merge