thermal: tsens: Add generic support for TSENS v2 IP
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 18 Jul 2018 06:43:12 +0000 (12:13 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 22:09:28 +0000 (15:09 -0700)
commit191dc74bad60e1462094b2e25321479e7eb17cdc
tree5a031f72ac7b53ab3af39b433c196acce4719b31
parent770324a4bf2ffbcab5692d473c3f3f0e36b5a289
thermal: tsens: Add generic support for TSENS v2 IP

SDM845 uses v2 of the TSENS IP block but the get_temp() function appears to
be identical across v2.x.y in code seen so far. We use the generic
get_temp() function defined as part of ops_generic_v2.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h