bcm2711_thermal: Don't clamp temperature at zero

The temperature sensor is valid below zero and the linux framework is happy with it.

See: https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=315382
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
This commit is contained in:
Dom Cobley
2021-07-08 13:48:11 +01:00
committed by Phil Elwell
parent 20dcc4616a
commit 9f728444fd

View File

@@ -52,7 +52,7 @@ static int bcm2711_get_temp(void *data, int *temp)
/* Convert a HW code to a temperature reading (millidegree celsius) */
t = slope * val + offset;
*temp = t < 0 ? 0 : t;
*temp = t;
return 0;
}