diff options
author | Rafael J. Wysocki <[email protected]> | 2024-08-19 18:02:44 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2024-08-22 17:43:14 +0200 |
commit | b1c75b3820c18b53cc117bbb02e86b41b018b70a (patch) | |
tree | dda69b426f60bc07ace8191d2a7a8f7e7c981b7f /tools | |
parent | aa35e56a5217b86f9c05420c36c908baf3b2df5f (diff) |
thermal: ACPI: Use the .should_bind() thermal zone callback
Make the ACPI thermal zone driver use the .should_bind() thermal zone
callback to provide the thermal core with the information on whether or
not to bind the given cooling device to the given trip point in the
given thermal zone. If it returns 'true', the thermal core will bind
the cooling device to the trip and the corresponding unbinding will be
taken care of automatically by the core on the removal of the involved
thermal zone or cooling device.
This replaces the .bind() and .unbind() thermal zone callbacks which
allows the code to be simplified quite significantly while providing
the same functionality.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Zhang Rui <[email protected]>
Reviewed-by: Daniel Lezcano <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions