]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: core: Introduce thermal_instance_add()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Oct 2024 22:13:50 +0000 (00:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 23 Oct 2024 09:56:57 +0000 (11:56 +0200)
commit6d153f52cc3452258415db6a202cc6d15daa3920
treedd3e570e0fe2922d548bb30ab83c0377f2e73ce1
parent33eab804d695dc2be1491890143a64ea4d99cd42
thermal: core: Introduce thermal_instance_add()

To reduce the number of redundant result checks in
thermal_bind_cdev_to_trip() and make the code in it easier to
follow, move some of it to a new function called thermal_instance_add()
and make thermal_bind_cdev_to_trip() invoke that function.

No intentional functional impact.

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