Skip to content

Commit

Permalink
ab8500_btemp: Remove superfluous BTEMP thermal comp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hakan Berg authored and Anton Vorontsov committed Jan 16, 2013
1 parent 6eaf874 commit 0cdaf9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/ab8500_btemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,8 @@ static int ab8500_btemp_probe(struct platform_device *pdev)
ab8500_btemp_periodic_work);

/* Set BTEMP thermal limits. Low and Med are fixed */
di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT * 10;
di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT * 10;
di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT;
di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT;

ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER,
AB8500_BTEMP_HIGH_TH, &val);
Expand Down

0 comments on commit 0cdaf9a

Please sign in to comment.