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

Commit 51199c59 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "thermal: tsens: Apply scaling to temp read from sensor" into msm-4.9

parents c84840cd 04c48a94
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -517,8 +517,8 @@ static irqreturn_t tsens_irq_thread(int irq, void *data)
			th_temp = code_to_degc((threshold &
					TSENS_UPPER_THRESHOLD_MASK) >>
					TSENS_UPPER_THRESHOLD_SHIFT,
					tm->sensor);
			if (th_temp > temp) {
					(tm->sensor + i));
			if (th_temp > (temp/TSENS_SCALE_MILLIDEG)) {
				pr_debug("Re-arm high threshold\n");
				rc = tsens_tz_activate_trip_type(
						&tm->sensor[i],
@@ -539,8 +539,8 @@ static irqreturn_t tsens_irq_thread(int irq, void *data)
					tm->tsens_tm_addr + addr_offset));
			th_temp = code_to_degc((threshold &
					TSENS_LOWER_THRESHOLD_MASK),
					tm->sensor);
			if (th_temp < temp) {
					(tm->sensor + i));
			if (th_temp < (temp/TSENS_SCALE_MILLIDEG)) {
				pr_debug("Re-arm Low threshold\n");
				rc = tsens_tz_activate_trip_type(
						&tm->sensor[i],