OSDN Git Service

drivers: thermal: tsens: Create function to return sign-extended temperature
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 31 Oct 2019 18:37:38 +0000 (00:07 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Nov 2019 06:00:26 +0000 (07:00 +0100)
commitbd93ee3cb43b6a0ab4a78edd9e26dcda01b3b77e
tree730c4c82a665c4ea90fee3a15912b46518574187
parenta877e768f6552126603b5e88d3ad18c6f7ca2cf7
drivers: thermal: tsens: Create function to return sign-extended temperature

Hide the details of how to convert values read from TSENS HW to mCelsius
behind a function. All versions of the IP can be supported as a result.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/0689917475cf83b7e01f6978504fd37352a5e3ca.1572526427.git.amit.kucheria@linaro.org
drivers/thermal/qcom/tsens-common.c