projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5326916
)
regulator: Fix getting voltage in max8649_enable_time()
author
Axel Lin
<axel.lin@gmail.com>
Tue, 7 Feb 2012 03:12:55 +0000
(11:12 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Fri, 10 Feb 2012 11:20:55 +0000
(11:20 +0000)
Current code takes wrong parameter while calling max8649_list_voltage.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8649.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8649.c
b/drivers/regulator/max8649.c
index b06a2399587c0e08fec38c8c827da6859130840f..d0e1180ad961c115fa55ddc4e318b2fbf5e42b31 100644
(file)
--- a/
drivers/regulator/max8649.c
+++ b/
drivers/regulator/max8649.c
@@
-150,7
+150,7
@@
static int max8649_enable_time(struct regulator_dev *rdev)
if (ret != 0)
return ret;
val &= MAX8649_VOL_MASK;
- voltage = max8649_list_voltage(rdev, (unsigned char)
ret
); /* uV */
+ voltage = max8649_list_voltage(rdev, (unsigned char)
val
); /* uV */
/* get rate */
ret = regmap_read(info->regmap, MAX8649_RAMP, &val);