From: Lucas De Marchi Date: Sat, 22 Feb 2025 00:10:42 +0000 (-0800) Subject: drivers: base: devres: Fix find_group() documentation X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=96d01ef3b106799dc6fcecfe03ceb0ccc14a2d54;p=users%2Fjedix%2Flinux-maple.git drivers: base: devres: Fix find_group() documentation It returns the last open group, not the last group. Acked-by: Greg Kroah-Hartman Reviewed-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-3-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi --- diff --git a/drivers/base/devres.c b/drivers/base/devres.c index 68224f2f83fff..830e9f4eb1482 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;