Thread (21 messages) 21 messages, 4 authors, 2021-01-19

[thermal: thermal/next] acpi/drivers/thermal: Remove TRIPS_NONE cooling device binding

From: thermal-bot for Daniel Lezcano <hidden>
Date: 2021-01-19 21:31:40
Subsystem: acpi, acpi thermal driver, the rest · Maintainers: "Rafael J. Wysocki", Rafael J. Wysocki, Linus Torvalds

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     43bb4a9d658398151ad1b77340003ff81f4b8650
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//43bb4a9d658398151ad1b77340003ff81f4b8650
Author:        Daniel Lezcano [off-list ref]
AuthorDate:    Tue, 15 Dec 2020 00:38:07 +01:00
Committer:     Daniel Lezcano [off-list ref]
CommitterDate: Tue, 19 Jan 2021 22:23:18 +01:00

acpi/drivers/thermal: Remove TRIPS_NONE cooling device binding

The loop is here to create default cooling device binding on the
THERMAL_TRIPS_NONE number which is used to be the 'forced_passive'
feature. However, we removed all code dealing with that in the thermal
core, thus this binding does no longer make sense.

Remove it.

Signed-off-by: Daniel Lezcano <redacted>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Thara Gopinath <redacted>
Link: https://lore.kernel.org/r/20201214233811.485669-4-daniel.lezcano@linaro.org (local)
---
 drivers/acpi/thermal.c | 19 -------------------
 1 file changed, 19 deletions(-)
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index b5e4bc9..26a89ff 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -764,25 +764,6 @@ static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal,
 		}
 	}
 
-	for (i = 0; i < tz->devices.count; i++) {
-		handle = tz->devices.handles[i];
-		status = acpi_bus_get_device(handle, &dev);
-		if (ACPI_SUCCESS(status) && (dev == device)) {
-			if (bind)
-				result = thermal_zone_bind_cooling_device
-						(thermal, THERMAL_TRIPS_NONE,
-						 cdev, THERMAL_NO_LIMIT,
-						 THERMAL_NO_LIMIT,
-						 THERMAL_WEIGHT_DEFAULT);
-			else
-				result = thermal_zone_unbind_cooling_device
-						(thermal, THERMAL_TRIPS_NONE,
-						 cdev);
-			if (result)
-				goto failed;
-		}
-	}
-
 failed:
 	return result;
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help