driver: max17042: Set correct temperature range
authorGraziano Misuraca <gmisuraca@nvidia.com>
Thu, 31 Jan 2013 02:20:28 +0000 (18:20 -0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Mon, 11 Feb 2013 12:53:22 +0000 (04:53 -0800)
commit92409b88702061c07e9ddf1fd1d30ae8d118f6b8
treeae6f24e31449b26d91cad7cc3eb321eb885e9272
parent26c80a290c88993f47a15cd5a116b7c02fb1bcbd
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>
include/linux/power/max17042_battery.h