]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/drivers/tsens: Replace custom 8960 apis with generic apis
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 4 Apr 2021 14:48:20 +0000 (16:48 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 5 Apr 2021 22:53:35 +0000 (00:53 +0200)
commitc9a6d58f89080e99f9adb643c2602a478bc8a928
tree9cf1cff55b7e931dac817c630b3d6e3cd5db373f
parentf65f7d8f789e2f87f0fce5134b091ba7fc87c20c
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/20210404144823.31867-7-ansuelsmth@gmail.com
drivers/thermal/qcom/tsens-8960.c