Re: [PATCH v1] thermal: core: Update thermal zone registration documentation

From: Lukasz Luba
Date: Fri Aug 02 2024 - 05:33:13 EST




On 7/31/24 15:59, Rafael J. Wysocki wrote:
From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

The thermal sysfs API document is outdated. One of the problems with
it is that is still documents thermal_zone_device_register() which
does not exit any more and it does not reflect the current thermal
zone operations definition.

Replace the thermal_zone_device_register() description in it with
a thermal_zone_device_register_with_trips() description, including
an update of the thermal zone operations list.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
---
Documentation/driver-api/thermal/sysfs-api.rst | 65 +++++++++++--------------
1 file changed, 30 insertions(+), 35 deletions(-)

Index: linux-pm/Documentation/driver-api/thermal/sysfs-api.rst
===================================================================
--- linux-pm.orig/Documentation/driver-api/thermal/sysfs-api.rst
+++ linux-pm/Documentation/driver-api/thermal/sysfs-api.rst

LGTM

Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>