projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e1ddfa
)
drivers: base: devres: Fix find_group() documentation
author
Lucas De Marchi
<lucas.demarchi@intel.com>
Sat, 22 Feb 2025 00:10:42 +0000
(16:10 -0800)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Tue, 25 Feb 2025 22:29:05 +0000
(14:29 -0800)
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>
drivers/base/devres.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/devres.c
b/drivers/base/devres.c
index 68224f2f83fff2653732070da146eecf3e48f8fe..830e9f4eb14829bb6f0a114304034288597a0aec 100644
(file)
--- 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;