projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba41a5
)
regulator: core: Fix getting input_uV when supplied by another regulator
author
Axel Lin
<axel.lin@gmail.com>
Fri, 13 Apr 2012 13:35:05 +0000
(21:35 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 16 Apr 2012 09:19:30 +0000
(10:19 +0100)
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>
drivers/regulator/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index d4d34cbd34d9ea8f98f65472e2b808c28da26386..713981b52f2a10e09f74feb453f178624b96e935 100644
(file)
--- 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)