diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-10-31 11:20:27 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:45:02 +0900 |
commit | 5d156b76c555954db19842dbe030fd81b38f6201 (patch) | |
tree | 74308f088a1b2c9f29adec04ebe20b8815eeaa59 /drivers/power | |
parent | cd34c40e2c4efe118a1f61feaf4019b6c81ec1b3 (diff) | |
download | linux-3.10-5d156b76c555954db19842dbe030fd81b38f6201.tar.gz linux-3.10-5d156b76c555954db19842dbe030fd81b38f6201.tar.bz2 linux-3.10-5d156b76c555954db19842dbe030fd81b38f6201.zip |
Revert "battery: max17042/7: Fix temperature unit to milli centigrade."
This reverts commit 79b1d3591b35022b93f2d70c299e74eb54bfec09.
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/max17042_battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c index 8023a5d7394..88e161dd0e1 100644 --- 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 milli-centigrade scale */ + /* The value is converted into deci-centigrade scale */ /* Units of LSB = 1 / 256 degree Celsius */ - val->intval = val->intval * 1000 / 256; + val->intval = val->intval * 10 / 256; break; case POWER_SUPPLY_PROP_CURRENT_NOW: if (chip->pdata->enable_current_sense) { |