Revert "battery: max17042/7: Fix temperature unit to milli centigrade."
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 31 Oct 2013 02:20:27 +0000 (11:20 +0900)
committerChanho 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

index 8023a5d..88e161d 100644 (file)
@@ -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) {