thermal/fw: Fix kernel-doc parameter names
PATCH 1/1 thermal/fw: Fix kernel-doc parameter names
The kernel-doc for thermal_fwnode_cooling_device_register() still names the old device tree arguments np and of_index, and devm_thermal_fwnode_cooling_device_register() documents fw_index rather than fwn_index. Rename them to match the code and reword the device tree reference as a firmware node one.
--- drivers/thermal/thermal_fw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/thermal/thermal_fw.c +4 -4
@@ -11,13 +11,13 @@/** * thermal_fwnode_cooling_device_register() - register an thermal cooling device -* @np: a pointer to a device tree node. -* @of_index: a cooling device index in the cooling controller +* @fwnode: a pointer to a firmware node. +* @fwn_index: a cooling device index in the cooling controller * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * -* This function will register a cooling device with device tree node reference. +* This function will register a cooling device with a firmware node reference. * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time.
@@ -71,7 +71,7 @@ __devm_thermal_fwnode_cooling_device_register(struct device *dev, struct fwnode_/** * devm_thermal_fwnode_cooling_device_register() - register a thermal cooling device * @dev: a valid struct device pointer of a sensor device. -* @fw_index: a cooling device index in the cooling controller +* @fwn_index: a cooling device index in the cooling controller * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks.
Signature · 1 line
2.46.0
Daniel Lezcano
AppliedQuoted 8 lines · Aryan Sinha
The kernel-doc for
thermal_fwnode_cooling_device_register()still names the old device tree arguments np andof_index, anddevm_thermal_fwnode_cooling_device_register()documentsfw_indexrather thanfwn_index. Rename them to match the code and reword the device tree reference as a firmware node one.Signed-off-by Aryan Sinha <[email protected]>---
Applied, thanks
The following commit has been merged into the thermal/linux-next branch of thermal:
The following commit has been merged into the thermal/linux-next branch of thermal:
Commit-ID: 379ae6766d1a7a1f78f1d97b6c72a262f14960e8 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//379ae6766d1a7a1f78f1d97b6c72a262f14960e8 Author: Aryan Sinha <[email protected]> AuthorDate: Mon, 12 Oct 2026 20:50:32 +05:30 Committer: Daniel Lezcano <[email protected]> CommitterDate: Wed, 14 Oct 2026 09:45:41 +02:00
thermal/fw: Fix kernel-doc parameter names
The kernel-doc for thermal_fwnode_cooling_device_register() still names the old device tree arguments np and of_index, and devm_thermal_fwnode_cooling_device_register() documents fw_index rather than fwn_index. Rename them to match the code and reword the device tree reference as a firmware node one.
--- drivers/thermal/thermal_fw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/thermal/thermal_fw.c +4 -4
@@ -11,13 +11,13 @@/** * thermal_fwnode_cooling_device_register() - register an thermal cooling device -* @np: a pointer to a device tree node. -* @of_index: a cooling device index in the cooling controller +* @fwnode: a pointer to a firmware node. +* @fwn_index: a cooling device index in the cooling controller * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * -* This function will register a cooling device with device tree node reference. +* This function will register a cooling device with a firmware node reference. * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time.
@@ -71,7 +71,7 @@ __devm_thermal_fwnode_cooling_device_register(struct device *dev, struct fwnode_/** * devm_thermal_fwnode_cooling_device_register() - register a thermal cooling device * @dev: a valid struct device pointer of a sensor device. -* @fw_index: a cooling device index in the cooling controller +* @fwn_index: a cooling device index in the cooling controller * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks.