thermal: netlink: Pass thermal zone pointer to notify routines
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jan 2024 11:59:10 +0000 (12:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jan 2024 12:32:23 +0000 (13:32 +0100)
commit2f521890aa5b8a5619d31a95caec0b08d4cb9e1a
tree7c0596964b5234e39e8fb033010ac001ad35e832
parent4ae535f37d0e3c5731f90c385e883c0bada59fc9
thermal: netlink: Pass thermal zone pointer to notify routines

There are several rountines in the thermal netlink API that take a
thermal zone ID or a thermal zone type as their arguments, but from
their callers perspective it would be more convenient to pass a thermal
zone pointer to them and let them extract the necessary data from the
given thermal zone object by themselves.

Modify the code accordingly.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_netlink.h