projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e50bf
)
acpi: thermal: Don't call thermal_zone_device_is_enabled()
author
Andrzej Pietrasiewicz
<andrzej.p@collabora.com>
Fri, 3 Jul 2020 10:43:52 +0000
(12:43 +0200)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 6 Jul 2020 23:26:06 +0000
(
01:26
+0200)
thermal_zone_device_update() can now handle disabled thermal zones, so
the check here is not needed.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/20200703104354.19657-2-andrzej.p@collabora.com
drivers/acpi/thermal.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/thermal.c
b/drivers/acpi/thermal.c
index
29a2b73
..
12c0ece
100644
(file)
--- 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);
}