From 4ff3071baa653bd0813a5f9a77973cfff4ab3751 Mon Sep 17 00:00:00 2001 From: Jonghwa Lee Date: Thu, 31 Oct 2013 11:20:27 +0900 Subject: Revert "battery: max17042/7: Fix temperature unit to milli centigrade." This reverts commit 79b1d3591b35022b93f2d70c299e74eb54bfec09. --- drivers/power/max17042_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/power') 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) { -- cgit v1.2.3