Skip to content

Commit 9864472

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
counter: Update documentation for new counter registration functions
In order to replace the counter registration API also update the documentation to the new way. Reviewed-by: Jonathan Cameron <[email protected]> Acked-by: William Breathitt Gray <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c18e276 commit 9864472

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/driver-api/generic-counter.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ order to communicate with the device: to read and write various Signals
262262
and Counts, and to set and get the "action mode" and "function mode" for
263263
various Synapses and Counts respectively.
264264

265-
A defined counter_device structure may be registered to the system by
266-
passing it to the counter_register function, and unregistered by passing
267-
it to the counter_unregister function. Similarly, the
268-
devm_counter_register function may be used if device memory-managed
269-
registration is desired.
265+
A counter_device structure is allocated using counter_alloc() and then
266+
registered to the system by passing it to the counter_add() function, and
267+
unregistered by passing it to the counter_unregister function. There are
268+
device managed variants of these functions: devm_counter_alloc() and
269+
devm_counter_add().
270270

271271
The struct counter_comp structure is used to define counter extensions
272272
for Signals, Synapses, and Counts.

0 commit comments

Comments
 (0)