Re: [PATCH v3 04/14] thermal: sysfs: Use the dev argument in instance-related show/store

From: lihuisong (C)
Date: Tue Aug 20 2024 - 03:59:37 EST



在 2024/8/19 23:56, Rafael J. Wysocki 写道:
From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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@xxxxxxxxx>
---

v1 -> v3: No changes (previously [06/17])

---
drivers/thermal/thermal_sysfs.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
Using to_thermal_zone() and to_cooling_device() in sysfs looks good to me.
Acked-by: Huisong Li <lihuisong@xxxxxxxxxx>