summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-10-31 11:20:56 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:45:02 +0900
commit4ba84046f1152b1b499fd1c73d59d94f4eb25b91 (patch)
treee3f376f6280b3f0aa07929f7fe0933b4b3329795 /drivers/power
parent5d156b76c555954db19842dbe030fd81b38f6201 (diff)
downloadlinux-3.10-4ba84046f1152b1b499fd1c73d59d94f4eb25b91.tar.gz
linux-3.10-4ba84046f1152b1b499fd1c73d59d94f4eb25b91.tar.bz2
linux-3.10-4ba84046f1152b1b499fd1c73d59d94f4eb25b91.zip
charger-manager: Fix unit of temperature to deci centigrade.
Fix temperature unit to follow the standard as document describes. Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/charger-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c
index 69746913ce1..373281fa024 100644
--- a/drivers/power/charger-manager.c
+++ b/drivers/power/charger-manager.c
@@ -1462,10 +1462,10 @@ err:
return ret;
}
-/* Every temperature units are in milli centigrade */
-#define CM_DEFAULT_TEMP_ALERT_DIFF 10000
-#define CM_DEFAULT_TEMP_ALERT_MAX 127000
-#define CM_DEFAULT_TEMP_ALERT_MIN (-127000)
+/* Every temperature units are in decii centigrade */
+#define CM_DEFAULT_TEMP_ALERT_DIFF 100
+#define CM_DEFAULT_TEMP_ALERT_MAX 1270
+#define CM_DEFAULT_TEMP_ALERT_MIN (-1270)
static int cm_default_get_temp(struct charger_manager *cm)
{