mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user