Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7998f63 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

thermal: tsens: Enable valid status bit check



Check if the valid bit is set as part of reading the ADC data from the
status register. The valid bit is used to avoid possibility of reading
invalid ADC data as the controller is updating the readings.

Change-Id: Ice14075a3444d758b981cb0b43ea46860b5dc3cf
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent e47fdd15
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5335,6 +5335,8 @@ static int get_device_tree_data(struct platform_device *pdev,
		(!strcmp(id->compatible, "qcom,msmzirc-tsens")) ||
		(!strcmp(id->compatible, "qcom,msm8992-tsens")) ||
		(!strcmp(id->compatible, "qcom,msm8996-tsens")) ||
		(!strcmp(id->compatible, "qcom,msm8952-tsens")) ||
		(!strcmp(id->compatible, "qcom,msm8937-tsens")) ||
		(!strcmp(id->compatible, "qcom,msmtitanium-tsens")))
			tmdev->tsens_valid_status_check = true;
	}