Commit ce32f859 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Grant Likely
Browse files

of/fdt: fix argument name and add comments of unflatten_dt_node()



Match the name of the third argument in the comment block
to the actual function: p -> poffset

Add missing comments about the arguments "nodepp" and "dryrun".

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent c8fff7bc
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -164,9 +164,12 @@ static void *unflatten_dt_alloc(void **mem, unsigned long size,
 * unflatten_dt_node - Alloc and populate a device_node from the flat tree
 * unflatten_dt_node - Alloc and populate a device_node from the flat tree
 * @blob: The parent device tree blob
 * @blob: The parent device tree blob
 * @mem: Memory chunk to use for allocating device nodes and properties
 * @mem: Memory chunk to use for allocating device nodes and properties
 * @p: pointer to node in flat tree
 * @poffset: pointer to node in flat tree
 * @dad: Parent struct device_node
 * @dad: Parent struct device_node
 * @nodepp: The device_node tree created by the call
 * @fpsize: Size of the node path up at the current depth.
 * @fpsize: Size of the node path up at the current depth.
 * @dryrun: If true, do not allocate device nodes but still calculate needed
 * memory size
 */
 */
static void * unflatten_dt_node(void *blob,
static void * unflatten_dt_node(void *blob,
				void *mem,
				void *mem,