From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>Using to_thermal_zone() and to_cooling_device() in sysfs looks good to me.
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(-)