aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_btemp.c
diff options
context:
space:
mode:
authorHakan Berg <hakan.berg@stericsson.com>2013-01-11 08:13:00 -0500
committerAnton Vorontsov <anton@enomsg.org>2013-01-15 20:44:36 -0500
commit0cdaf9a900f6fb63a1c77f51ac8d3c16481709f3 (patch)
treeaaae1411cc079ea7327bb02557f7f2424d554cd6 /drivers/power/ab8500_btemp.c
parent6eaf8740dad8820ea708e83f14134401de1cff6e (diff)
ab8500_btemp: Remove superfluous BTEMP thermal comp
BTEMP thermal compensation factor times 10 is applied in two places, probe and get_property. Removed from probe. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Hakan Berg <hakan.berg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/ab8500_btemp.c')
-rw-r--r--drivers/power/ab8500_btemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c
index b3f6467da7f3..8ccf3590fd76 100644
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/ab8500_btemp.c
@@ -1030,8 +1030,8 @@ static int ab8500_btemp_probe(struct platform_device *pdev)
1030 ab8500_btemp_periodic_work); 1030 ab8500_btemp_periodic_work);
1031 1031
1032 /* Set BTEMP thermal limits. Low and Med are fixed */ 1032 /* Set BTEMP thermal limits. Low and Med are fixed */
1033 di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT * 10; 1033 di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT;
1034 di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT * 10; 1034 di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT;
1035 1035
1036 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, 1036 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER,
1037 AB8500_BTEMP_HIGH_TH, &val); 1037 AB8500_BTEMP_HIGH_TH, &val);