]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thermal: sysfs: Use the dev argument in instance-related show/store
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 Aug 2024 15:56:15 +0000 (17:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Aug 2024 15:43:14 +0000 (17:43 +0200)
commit0a0a40d71cf5f51123292982efde38f4b111aee9
tree0f95eb48a6ed35d5647d1b0fcac894d8a856304f
parenteb3591cde1aee34c56b5dc96d9b247349827024f
thermal: sysfs: Use the dev argument in instance-related show/store

Two sysfs show/store functions for attributes representing thermal
instances, trip_point_show() and weight_store(), retrieve the thermal
zone pointer from the instance object at hand, but they may also get
it from their dev argument, which is more consistent with what the
other thermal sysfs functions do, so make them do so.

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/1987669.PYKUYFuaPT@rjwysocki.net
drivers/thermal/thermal_sysfs.c