regulator: core: set current constraints while setting machine constraints
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 20 Sep 2013 07:43:02 +0000 (12:43 +0530)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Tue, 1 Oct 2013 08:35:56 +0000 (13:35 +0530)
commit83464fc9667d2b481d9ba882ad3cbede11d90e38
treec76e2787f3c858ca257061a40da8f60b1e1ec2ce
parentded2cd79abde4e58db23a4848a9884913ebfb978
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>
(cherry picked from commit f8c1700dd7d2ce9b2238b20d364317b2968ac76b)

Change-Id: I0d533a9ef0e3cc61e9d31263ebec56c1767073b3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/277823
(cherry picked from commit 80c105e54d3450f286815ef9ff3a424b2d13d982)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/regulator/core.c