diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-10-31 11:20:27 +0900 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-05-15 07:24:33 +0200 |
commit | 4ff3071baa653bd0813a5f9a77973cfff4ab3751 (patch) | |
tree | cb59eb76ef7ceab0a41d425c55d7609ed0fc6827 /drivers/power | |
parent | 89496e9ac72e0bef334d5c24a45c6c9faba12bdf (diff) | |
download | linux-3.10-4ff3071baa653bd0813a5f9a77973cfff4ab3751.tar.gz linux-3.10-4ff3071baa653bd0813a5f9a77973cfff4ab3751.tar.bz2 linux-3.10-4ff3071baa653bd0813a5f9a77973cfff4ab3751.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) { |