]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: core: Fold two functions into their respective callers
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 Aug 2024 15:50:30 +0000 (17:50 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Aug 2024 15:43:13 +0000 (17:43 +0200)
commita8bbe6f10f78f85243ff821432c5d798a6d99ed4
treeca121ae03e3d12cf5219c377a04c504e3bde37fb
parentf6a034f2df426e279f1ecad53626bab80c04796a
thermal: core: Fold two functions into their respective callers

Fold bind_cdev() into __thermal_cooling_device_register() and bind_tz()
into thermal_zone_device_register_with_trips() to reduce code bloat and
make it somewhat easier to follow the code flow.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/2962184.e9J7NaK4W3@rjwysocki.net
drivers/thermal/thermal_core.c