summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraziano Misuraca <gmisuraca@nvidia.com>2013-01-30 18:20:28 -0800
committerMandar Padmawar <mpadmawar@nvidia.com>2013-02-11 04:53:22 -0800
commit92409b88702061c07e9ddf1fd1d30ae8d118f6b8 (patch)
treeae6f24e31449b26d91cad7cc3eb321eb885e9272
parent26c80a290c88993f47a15cd5a116b7c02fb1bcbd (diff)
driver: max17042: Set correct temperature range
Max17042 returns the temperature in deci-celsius. The temperature range was set to +/-70 which is actually only +/- 7 degrees. Change the range to -20 to +70 C so that the driver does not incorrectly believe the battery is overheating. Bug 1220507 Change-Id: I6046933cc7597bd4051673238261219ce8cfa106 Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com> Reviewed-on: http://git-master/r/195782 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Gaurav Batra <gbatra@nvidia.com> Tested-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
-rw-r--r--include/linux/power/max17042_battery.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/power/max17042_battery.h b/include/linux/power/max17042_battery.h
index 59da9967ec05..bfbc499ea795 100644
--- a/include/linux/power/max17042_battery.h
+++ b/include/linux/power/max17042_battery.h
@@ -31,8 +31,8 @@
#define MAX17042_CHARACTERIZATION_DATA_SIZE 48
-#define MAX_TEMP 70
-#define MIN_TEMP -70
+#define MAX_TEMP 700
+#define MIN_TEMP -200
enum max17042_register {
MAX17042_STATUS = 0x00,