Skip to content
/ linux Public

Commit a943d76

Browse files
M-Vaittinengregkh
authored andcommitted
devm-helpers: Fix devm_delayed_work_autocancel() kerneldoc
The kerneldoc for devm_delayed_work_autocancel() contains invalid parameter description. Fix the parameter description. And while at it - make it more obvous that this function operates on delayed_work. That helps differentiating with resource-managed INIT_WORK description (which should follow in near future) Fixes: 0341ce5 ("workqueue: Add resource managed version of delayed work init") Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/db3a8b4b8899fdf109a0cc760807de12d3b4f09b.1619028482.git.matti.vaittinen@fi.rohmeurope.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bd2a895 commit a943d76

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/linux/devm-helpers.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ static inline void devm_delayed_work_drop(void *res)
3232
}
3333

3434
/**
35-
* devm_delayed_work_autocancel - Resource-managed work allocation
36-
* @dev: Device which lifetime work is bound to
37-
* @pdata: work to be cancelled when driver is detached
35+
* devm_delayed_work_autocancel - Resource-managed delayed work allocation
36+
* @dev: Device which lifetime work is bound to
37+
* @w: Work item to be queued
38+
* @worker: Worker function
3839
*
39-
* Initialize work which is automatically cancelled when driver is detached.
40-
* A few drivers need delayed work which must be cancelled before driver
41-
* is detached to avoid accessing removed resources.
40+
* Initialize delayed work which is automatically cancelled when driver is
41+
* detached. A few drivers need delayed work which must be cancelled before
42+
* driver is detached to avoid accessing removed resources.
4243
* devm_delayed_work_autocancel() can be used to omit the explicit
4344
* cancelleation when driver is detached.
4445
*/

0 commit comments

Comments
 (0)