diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-21 16:10:42 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-25 14:29:05 -0800 |
commit | 96d01ef3b106799dc6fcecfe03ceb0ccc14a2d54 (patch) | |
tree | 773cfe2ac58712e656a2a07ab9d6afac3f32df3f | |
parent | 8e1ddfada4530939a8cb64ee9251aef780474274 (diff) |
drivers: base: devres: Fix find_group() documentation
It returns the last open group, not the last group.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-3-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
-rw-r--r-- | drivers/base/devres.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/base/devres.c b/drivers/base/devres.c index 68224f2f83ff..830e9f4eb148 100644 --- a/drivers/base/devres.c +++ b/drivers/base/devres.c @@ -576,7 +576,10 @@ void *devres_open_group(struct device *dev, void *id, gfp_t gfp) } EXPORT_SYMBOL_GPL(devres_open_group); -/* Find devres group with ID @id. If @id is NULL, look for the latest. */ +/* + * Find devres group with ID @id. If @id is NULL, look for the latest open + * group. + */ static struct devres_group *find_group(struct device *dev, void *id) { struct devres_node *node; |