projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a74403
)
regulator: Return microamps in wm8350_isink_get_current
author
Axel Lin
<axel.lin@gmail.com>
Tue, 27 Mar 2012 07:21:45 +0000
(15:21 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 28 Mar 2012 11:44:13 +0000
(12:44 +0100)
The values in isink_cur array are microamps.
The regulator core expects get_current_limit callback to return microamps.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm8350-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/wm8350-regulator.c
b/drivers/regulator/wm8350-regulator.c
index f29803cfd0cb3652ba5294cd69e39d342142910f..c5f3b4090d87412ea788afcc8df246e1c3b7e4d8 100644
(file)
--- a/
drivers/regulator/wm8350-regulator.c
+++ b/
drivers/regulator/wm8350-regulator.c
@@
-186,7
+186,7
@@
static int wm8350_isink_get_current(struct regulator_dev *rdev)
return 0;
}
- return
DIV_ROUND_CLOSEST(isink_cur[val], 100)
;
+ return
isink_cur[val]
;
}
/* turn on ISINK followed by DCDC */