power: max17042: use room temperature value
Sivaram Nair [Tue, 5 Mar 2013 18:57:59 +0000 (20:57 +0200)]
The battery temperature reading is not working as expected. So use the
room temperature value for now.

Bug 1246715

Change-Id: I264c4306b116c9f774a410913b546eaed8fee389
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/206374
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

drivers/power/max17042_battery.c

index 27dc806..7144295 100644 (file)
@@ -725,10 +725,7 @@ struct temp_ibat_map {
 };
 
 struct temp_ibat_map safe_ibat_lut[] = {
-       {  0, 5000 },
        { 25, 3700 },
-       { 60, 1900 },
-       { 70, 1600 }
 };
 
 unsigned int ibat_safepeak(int temp)