@@ -318,17 +318,24 @@ int release_resource(struct resource *old)
318318
319319EXPORT_SYMBOL (release_resource );
320320
321- /*
322- * Finds the lowest iomem resource that covers part of [start..end]. The
323- * caller must specify start, end, flags, and desc (which may be
321+ /**
322+ * Finds the lowest iomem resource that covers part of [@ start..@ end]. The
323+ * caller must specify @ start, @ end, @ flags, and @ desc (which may be
324324 * IORES_DESC_NONE).
325325 *
326- * If a resource is found, returns 0 and *res is overwritten with the part
327- * of the resource that's within [start..end]; if none is found, returns
328- * -1. Returns -EINVAL for other invalid parameters.
326+ * If a resource is found, returns 0 and @ *res is overwritten with the part
327+ * of the resource that's within [@ start..@ end]; if none is found, returns
328+ * -1 or -EINVAL for other invalid parameters.
329329 *
330330 * This function walks the whole tree and not just first level children
331331 * unless @first_lvl is true.
332+ *
333+ * @start: start address of the resource searched for
334+ * @end: end address of same resource
335+ * @flags: flags which the resource must have
336+ * @desc: descriptor the resource must have
337+ * @first_lvl: walk only the first level children, if set
338+ * @res: return ptr, if resource found
332339 */
333340static int find_next_iomem_res (resource_size_t start , resource_size_t end ,
334341 unsigned long flags , unsigned long desc ,
@@ -390,9 +397,7 @@ static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end,
390397}
391398
392399/**
393- * walk_iomem_res_desc - walk through iomem resources
394- *
395- * Walks through iomem resources and calls @func() with matching resource
400+ * Walks through iomem resources and calls func() with matching resource
396401 * ranges. This walks through whole tree and not just first level children.
397402 * All the memory ranges which overlap start,end and also match flags and
398403 * desc are valid candidates.
0 commit comments