Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Randy Dunlap and committed by
Rafael J. Wysocki
f3b53687 f82fabe1

+2 -2
+2 -2
include/linux/powercap.h
··· 238 238 * Advantage of this parameter is that client can embed 239 239 * this data in its data structures and allocate in a 240 240 * 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 242 242 * in the sysfs Interface. 243 243 * @ops: Callbacks for control type. This parameter is optional. 244 244 * ··· 277 277 * @name: A name for this zone. 278 278 * @parent: A pointer to the parent power zone instance if any or NULL 279 279 * @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 281 281 * @const_ops: Pointer to constraint callback structure 282 282 * 283 283 * Register a power zone under a given control type. A power zone must register