thermal/drivers/tsens: Replace custom 8960 apis with generic apis
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 20 Apr 2021 18:33:40 +0000 (20:33 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 22 Apr 2021 12:09:59 +0000 (14:09 +0200)
commitdfc1193d4dbd6c3cb68c944413146c940bde290a
treee06434b26813f7af72ae018f24b92cf779727c24
parent3d08f029fdbbd29c8b363ef4c8c4bfe3b8f79ad0
thermal/drivers/tsens: Replace custom 8960 apis with generic apis

Rework calibrate function to use common function. Derive the offset from
a missing hardcoded slope table and the data from the nvmem calib
efuses.
Drop custom get_temp function and use generic api.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Acked-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210420183343.2272-7-ansuelsmth@gmail.com
drivers/thermal/qcom/tsens-8960.c