projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd34c40
)
Revert "battery: max17042/7: Fix temperature unit to milli centigrade."
author
Jonghwa Lee
<jonghwa3.lee@samsung.com>
Thu, 31 Oct 2013 02:20:27 +0000
(11:20 +0900)
committer
Chanho Park
<chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:02 +0000
(11:45 +0900)
This reverts commit
79b1d3591b35022b93f2d70c299e74eb54bfec09
.
drivers/power/max17042_battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/max17042_battery.c
b/drivers/power/max17042_battery.c
index
8023a5d
..
88e161d
100644
(file)
--- a/
drivers/power/max17042_battery.c
+++ b/
drivers/power/max17042_battery.c
@@
-195,9
+195,9
@@
static int max17042_get_property(struct power_supply *psy,
val->intval = (0x7fff & ~val->intval) + 1;
val->intval *= -1;
}
- /* The value is converted into
mill
i-centigrade scale */
+ /* The value is converted into
dec
i-centigrade scale */
/* Units of LSB = 1 / 256 degree Celsius */
- val->intval = val->intval * 10
00
/ 256;
+ val->intval = val->intval * 10 / 256;
break;
case POWER_SUPPLY_PROP_CURRENT_NOW:
if (chip->pdata->enable_current_sense) {