diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-10-22 16:55:52 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:41:09 +0900 |
commit | 03cd1dd43a597a50fb49e96a782a4d40ab02fb2c (patch) | |
tree | 465e1fe8770b0c14259e10ac725f34e6942402a4 | |
parent | ce53b419e75f6a7d2f0d42f882db76a38d7c8e8f (diff) | |
download | linux-3.10-03cd1dd43a597a50fb49e96a782a4d40ab02fb2c.tar.gz linux-3.10-03cd1dd43a597a50fb49e96a782a4d40ab02fb2c.tar.bz2 linux-3.10-03cd1dd43a597a50fb49e96a782a4d40ab02fb2c.zip |
battery: max17042/7: Fix temperature unit to milli centigrade.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
-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 88e161dd0e1..8023a5d7394 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 deci-centigrade scale */ + /* The value is converted into milli-centigrade scale */ /* Units of LSB = 1 / 256 degree Celsius */ - val->intval = val->intval * 10 / 256; + val->intval = val->intval * 1000 / 256; break; case POWER_SUPPLY_PROP_CURRENT_NOW: if (chip->pdata->enable_current_sense) { |