summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorRama Krishna Phani A <rphani@codeaurora.org>2017-01-31 13:32:26 +0530
committerRama Krishna Phani A <rphani@codeaurora.org>2017-01-31 13:32:26 +0530
commit3b900300eed7112b4997eccbe71cb2d47e2af86d (patch)
treec8e81a3f78ef5ed63d58f07eeb8a58e27f30e743 /drivers/thermal
parent314869eb56763d34f91d5483b0d510267894fadd (diff)
thermal: tsens: Update sensor id for sdm660
Update sensor id flag for sdm660 such that thermal client can obtain the HW ID for the available temperature sensors (TSENS) with sensor ID details. Change-Id: I6e217f734e8748c9ac5edf1c7a2b0dbf9deb9ac0 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/msm-tsens.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/msm-tsens.c b/drivers/thermal/msm-tsens.c
index b7733e90fc8b..82a8e4e200ba 100644
--- a/drivers/thermal/msm-tsens.c
+++ b/drivers/thermal/msm-tsens.c
@@ -363,6 +363,7 @@ static int32_t get_tsens_sensor_for_client_id(struct tsens_tm_device *tmdev,
if (!strcmp(id->compatible, "qcom,msm8996-tsens") ||
(!strcmp(id->compatible, "qcom,msm8998-tsens")) ||
+ (!strcmp(id->compatible, "qcom,sdm660-tsens")) ||
(!strcmp(id->compatible, "qcom,msmhamster-tsens"))) {
while (i < tmdev->tsens_num_sensor && !id_found) {
if (tmdev->sensor[i].sensor_client_id ==
@@ -492,6 +493,7 @@ int tsens_get_hw_id_mapping(int thermal_sensor_num, int *sensor_client_id)
if (!strcmp(id->compatible, "qcom,msm8996-tsens") ||
(!strcmp(id->compatible, "qcom,msm8998-tsens")) ||
+ (!strcmp(id->compatible, "qcom,sdm660-tsens")) ||
(!strcmp(id->compatible, "qcom,msmhamster-tsens"))) {
/* Assign client id's that is used to get the
* controller and hw_sensor details