]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: helpers: Introduce thermal_trip_is_bound_to_cdev()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Jul 2024 14:39:55 +0000 (16:39 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jul 2024 16:22:59 +0000 (18:22 +0200)
commit463b86fed2b25ddb5f576376bfea00134dd23030
treedf190d8df9b9a989e96b64a81f4aaa554ba49240
parentd05374dee295d771261d382f97c0c23cb15aa104
thermal: helpers: Introduce thermal_trip_is_bound_to_cdev()

Introduce a new helper function thermal_trip_is_bound_to_cdev() for
checking whether or not a given trip point has been bound to a given
cooling device.

The primary user of it will be the Tegra thermal driver.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/13545762.uLZWGnKmhe@rjwysocki.net
drivers/thermal/thermal_helpers.c
include/linux/thermal.h