]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: core: Clean up trip bind/unbind functions
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Aug 2024 15:26:28 +0000 (17:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Aug 2024 13:42:58 +0000 (15:42 +0200)
commit18749317d12e12095c5b4cb1634c93a14585bfba
tree2037c7fb9be413fe8276a40ecea0a8e80fbd0d0e
parentc579286a514d88a3f0d3bdabfd4d88737b33cb17
thermal: core: Clean up trip bind/unbind functions

Make thermal_bind_cdev_to_trip() take a struct cooling_spec pointer
to reduce the number of its arguments, change the return type of
thermal_unbind_cdev_from_trip() to void and rearrange the code in
thermal_zone_cdev_binding() to reduce the indentation level.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/1831773.TLkxdtWsSY@rjwysocki.net
[ rjw: Changed the name of a new function argument ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c