Skip to content

Commit cc88b78

Browse files
idlethreadrafaeljw
authored andcommitted
powercap: make documentation reflect code
Fix up the documentation of the struct powercap_control_type members to match the code. Also fixup stray whitespace. Signed-off-by: Amit Kucheria <amitk@kernel.org> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent ba92a42 commit cc88b78

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

include/linux/powercap.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,18 @@ struct powercap_control_type_ops {
4444
};
4545

4646
/**
47-
* struct powercap_control_type- Defines a powercap control_type
48-
* @name: name of control_type
47+
* struct powercap_control_type - Defines a powercap control_type
4948
* @dev: device for this control_type
5049
* @idr: idr to have unique id for its child
51-
* @root_node: Root holding power zones for this control_type
50+
* @nr_zones: counter for number of zones of this type
5251
* @ops: Pointer to callback struct
53-
* @node_lock: mutex for control type
52+
* @lock: mutex for control type
5453
* @allocated: This is possible that client owns the memory
5554
* used by this structure. In this case
5655
* this flag is set to false by framework to
5756
* prevent deallocation during release process.
5857
* Otherwise this flag is set to true.
59-
* @ctrl_inst: link to the control_type list
58+
* @node: linked-list node
6059
*
6160
* Defines powercap control_type. This acts as a container for power
6261
* zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc.
@@ -129,7 +128,7 @@ struct powercap_zone_ops {
129128
* this flag is set to false by framework to
130129
* prevent deallocation during release process.
131130
* Otherwise this flag is set to true.
132-
* @constraint_ptr: List of constraints for this zone.
131+
* @constraints: List of constraints for this zone.
133132
*
134133
* This defines a power zone instance. The fields of this structure are
135134
* private, and should not be used by client drivers.

0 commit comments

Comments
 (0)