aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/qcom/tsens.c
diff options
context:
space:
mode:
authorGravatar Amit Kucheria <amit.kucheria@linaro.org> 2018-07-18 12:13:12 +0530
committerGravatar Eduardo Valentin <edubezval@gmail.com> 2018-07-27 15:09:28 -0700
commit191dc74bad60e1462094b2e25321479e7eb17cdc (patch)
tree5a031f72ac7b53ab3af39b433c196acce4719b31 /drivers/thermal/qcom/tsens.c
parentthermal: tsens: Rename tsens-8996 to tsens-v2 for reuse (diff)
downloadlinux-191dc74bad60e1462094b2e25321479e7eb17cdc.tar.gz
linux-191dc74bad60e1462094b2e25321479e7eb17cdc.tar.bz2
linux-191dc74bad60e1462094b2e25321479e7eb17cdc.zip
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>
Diffstat (limited to 'drivers/thermal/qcom/tsens.c')
-rw-r--r--drivers/thermal/qcom/tsens.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index 3440166c2ae9..a2c9bfae3d86 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -72,6 +72,9 @@ static const struct of_device_id tsens_table[] = {
}, {
.compatible = "qcom,msm8996-tsens",
.data = &data_8996,
+ }, {
+ .compatible = "qcom,tsens-v2",
+ .data = &data_tsens_v2,
},
{}
};