diff options
author | Graziano Misuraca <gmisuraca@nvidia.com> | 2013-01-30 18:20:28 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:05:25 -0700 |
commit | af9f41d238c001d93609a485719c343d7ef1f345 (patch) | |
tree | 0e12214bcee7bf2f7202187ffaff9ac0876ed353 /include/linux/power | |
parent | 3b70d76bfe82245a9dec1fe4b2f6301149e843b2 (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
(cherry picked from commit 92409b88702061c07e9ddf1fd1d30ae8d118f6b8)
Reviewed-on: http://git-master/r/213182
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Gaurav Batra <gbatra@nvidia.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/max17042_battery.h | 4 |
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, |