]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Pass trip descriptors to trip bind/unbind functions
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Oct 2024 19:42:19 +0000 (21:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Oct 2024 10:08:11 +0000 (12:08 +0200)
commit17f76be51c52338d9632070cce2b181a7517f03d
tree07c546e7dabaf2bbcde7fb450d0b20308f26dcf0
parent0dc23567c20639049ad57fd8cc2165ee9f493ab6
thermal: core: Pass trip descriptors to trip bind/unbind functions

The code is somewhat cleaner if struct thermal_trip_desc pointers are
passed to thermal_bind_cdev_to_trip(), thermal_unbind_cdev_from_trip(),
and print_bind_err_msg() instead of struct thermal_trip pointers, so
modify it accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2246211.NgBsaNRSFp@rjwysocki.net
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/thermal_core.c