提交 0cdaf9a9 编写于 作者: H Hakan Berg 提交者: Anton Vorontsov

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: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NHakan Berg <hakan.berg@stericsson.com>
Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com>
Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
上级 6eaf8740
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册