diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-13 13:35:05 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-16 09:19:30 (GMT) |
commit | 3f24f5ada638dd07705bd83ebcc80044d587f374 (patch) | |
tree | 1b01b7577a164ee9abaa87b59870bbc7d1a126d1 /drivers/regulator/core.c | |
parent | eba41a5e8c9473c24c333df288d4fd6a40e98464 (diff) | |
download | linux-3f24f5ada638dd07705bd83ebcc80044d587f374.tar.xz |
regulator: core: Fix getting input_uV when supplied by another regulator
When supplied by another regulator, returns the supply regulator's output
voltage for inpu_uV.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d4d34cb..713981b 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -649,7 +649,7 @@ static void drms_uA_update(struct regulator_dev *rdev) /* get input voltage */ input_uV = 0; if (rdev->supply) - input_uV = _regulator_get_voltage(rdev); + input_uV = regulator_get_voltage(rdev->supply); if (input_uV <= 0) input_uV = rdev->constraints->input_uV; if (input_uV <= 0) |