]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: netlink: Rework notify API for cooling devices
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jan 2024 16:42:04 +0000 (17:42 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Jan 2024 14:38:23 +0000 (15:38 +0100)
commit11fde939314836c4375b567d60407d752d987069
tree0b4505039854f95c08645e813688cc6e17ae72c0
parent57a427c81c322c5f0cdfe7c46cdee553d18b1ec6
thermal: netlink: Rework notify API for cooling devices

In analogy with some previous thermal netlink API changes, redefine
thermal_notify_cdev_state_update(), thermal_notify_cdev_add() and
thermal_notify_cdev_delete() to take a const cdev pointer as their
first argument and let them extract the requisite information from
there by themselves.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_helpers.c
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_netlink.h