linux-sg2042/drivers/thermal/qcom
Amit Kucheria 432121adf5 thermal: tsens: Fix negative temperature reporting
The current code will always return 0xffffffff in case of negative
temperatures due to a bug in how the binary sign extension is being done.

Use sign_extend32() instead.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
2018-07-27 15:16:55 -07:00
..
Kconfig
Makefile thermal: tsens: Rename tsens-8996 to tsens-v2 for reuse 2018-07-27 15:08:10 -07:00
tsens-8916.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-8960.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-8974.c thermal: qcom: remove declare local symbols as static 2016-09-27 14:02:16 +08:00
tsens-common.c thermal: tsens: switch from of_iomap() to devm_ioremap_resource() 2018-07-27 15:15:57 -07:00
tsens-v2.c thermal: tsens: Fix negative temperature reporting 2018-07-27 15:16:55 -07:00
tsens.c thermal: tsens: Add generic support for TSENS v2 IP 2018-07-27 15:09:28 -07:00
tsens.h thermal: tsens: Add generic support for TSENS v2 IP 2018-07-27 15:09:28 -07:00