Skip to content

Commit f3b5368

Browse files
rddunlaprafaeljw
authored andcommitted
powercap: correct kernel-doc function parameter names
Use the correct function parameter names in kernel-doc comments to avoid these warnings: Warning: include/linux/powercap.h:254 function parameter 'name' not described in 'powercap_register_control_type' Warning: include/linux/powercap.h:298 function parameter 'nr_constraints' not described in 'powercap_register_zone' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Link: https://patch.msgid.link/20260312051444.685136-1-rdunlap@infradead.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f82fabe commit f3b5368

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/powercap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static inline void *powercap_get_zone_data(struct powercap_zone *power_zone)
238238
* Advantage of this parameter is that client can embed
239239
* this data in its data structures and allocate in a
240240
* single call, preventing multiple allocations.
241-
* @control_type_name: The Name of this control_type, which will be shown
241+
* @name: The Name of this control_type, which will be shown
242242
* in the sysfs Interface.
243243
* @ops: Callbacks for control type. This parameter is optional.
244244
*
@@ -277,7 +277,7 @@ int powercap_unregister_control_type(struct powercap_control_type *instance);
277277
* @name: A name for this zone.
278278
* @parent: A pointer to the parent power zone instance if any or NULL
279279
* @ops: Pointer to zone operation callback structure.
280-
* @no_constraints: Number of constraints for this zone
280+
* @nr_constraints: Number of constraints for this zone
281281
* @const_ops: Pointer to constraint callback structure
282282
*
283283
* Register a power zone under a given control type. A power zone must register

0 commit comments

Comments
 (0)