[PATCH 1/3] acpi: thermal: Don't call thermal_zone_device_is_enabled()

From
Andrzej Pietrasiewicz <hidden>
Date
2020-07-03 10:45:22
Also in
linux-acpi, linux-arm-kernel, linux-pm, linux-renesas-soc, linux-rockchip, netdev, platform-driver-x86
Reply to
Andrzej Pietrasiewicz, 2020-07-03
thermal_zone_device_update() can now handle disabled thermal zones, so
the check here is not needed.

Signed-off-by: Andrzej Pietrasiewicz <redacted>
---
 drivers/acpi/thermal.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 29a2b73fe035..12c0ece746f0 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -499,9 +499,6 @@ static void acpi_thermal_check(void *data)
 {
 	struct acpi_thermal *tz = data;
 
-	if (!thermal_zone_device_is_enabled(tz->thermal_zone))
-		return;
-
 	thermal_zone_device_update(tz->thermal_zone,
 				   THERMAL_EVENT_UNSPECIFIED);
 }
-- 
2.17.1
Thread (8 messages) 8 messages, 3 authors, last reply 2020-07-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help