[POWERPC] Update documentation for of_find_node_by_type()
The documentation for of_find_node_by_type() incorrectly refers to the "name" parameter - it should be "type". Also the behaviour when from == NULL is not really documented, fix that. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
f285e3d329
commit
5169b8a165
|
@ -1171,11 +1171,12 @@ EXPORT_SYMBOL(of_find_node_by_name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* of_find_node_by_type - Find a node by its "device_type" property
|
* of_find_node_by_type - Find a node by its "device_type" property
|
||||||
* @from: The node to start searching from or NULL, the node
|
* @from: The node to start searching from, or NULL to start searching
|
||||||
* you pass will not be searched, only the next one
|
* the entire device tree. The node you pass will not be
|
||||||
* will; typically, you pass what the previous call
|
* searched, only the next one will; typically, you pass
|
||||||
* returned. of_node_put() will be called on it
|
* what the previous call returned. of_node_put() will be
|
||||||
* @name: The type string to match against
|
* called on from for you.
|
||||||
|
* @type: The type string to match against
|
||||||
*
|
*
|
||||||
* Returns a node pointer with refcount incremented, use
|
* Returns a node pointer with refcount incremented, use
|
||||||
* of_node_put() on it when done.
|
* of_node_put() on it when done.
|
||||||
|
|
Loading…
Reference in New Issue