diff options
| author | Randy Dunlap <rdunlap@infradead.org> | 2026-03-11 22:14:44 -0700 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-03-30 13:57:49 +0200 |
| commit | f3b536878a3cf47e5193a96176a3ca2aaf0d848f (patch) | |
| tree | bc5e9cfdbe4d8c79afa8637506e782b4dfe159ed /include/linux/powercap.h | |
| parent | f82fabe18c75a7703e4bd81a9eabc9aa2303e1fb (diff) | |
| download | lwn-f3b536878a3cf47e5193a96176a3ca2aaf0d848f.tar.gz lwn-f3b536878a3cf47e5193a96176a3ca2aaf0d848f.zip | |
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>
Diffstat (limited to 'include/linux/powercap.h')
| -rw-r--r-- | include/linux/powercap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/powercap.h b/include/linux/powercap.h index 3d557bbcd2c7..603419db924c 100644 --- a/include/linux/powercap.h +++ b/include/linux/powercap.h @@ -238,7 +238,7 @@ static inline void *powercap_get_zone_data(struct powercap_zone *power_zone) * Advantage of this parameter is that client can embed * this data in its data structures and allocate in a * single call, preventing multiple allocations. -* @control_type_name: The Name of this control_type, which will be shown +* @name: The Name of this control_type, which will be shown * in the sysfs Interface. * @ops: Callbacks for control type. This parameter is optional. * @@ -277,7 +277,7 @@ int powercap_unregister_control_type(struct powercap_control_type *instance); * @name: A name for this zone. * @parent: A pointer to the parent power zone instance if any or NULL * @ops: Pointer to zone operation callback structure. -* @no_constraints: Number of constraints for this zone +* @nr_constraints: Number of constraints for this zone * @const_ops: Pointer to constraint callback structure * * Register a power zone under a given control type. A power zone must register |
