Skip to content

Commit

Permalink
dm: core: Fix up string-function documentation
Browse files Browse the repository at this point in the history
The details for of_property_read_string_helper() and
ofnode_read_string_index() are a little inaccurate. Fix up the comments to
avoid confusion.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 committed Nov 28, 2021
1 parent 8044318 commit 32c6a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion drivers/core/of_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ int of_property_match_string(const struct device_node *np, const char *propname,
* @propname: name of the property to be searched.
* @out_strs: output array of string pointers.
* @sz: number of array elements to read.
* @skip: Number of strings to skip over at beginning of list.
* @skip: Number of strings to skip over at beginning of list (cannot be
* negative)
*
* Don't call this function directly. It is a utility helper for the
* of_property_read_string*() family of functions.
Expand Down
4 changes: 2 additions & 2 deletions include/dm/ofnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,11 @@ int ofnode_stringlist_search(ofnode node, const char *propname,
*
* @node: node to check
* @propname: name of the property containing the string list
* @index: index of the string to return
* @index: index of the string to return (cannot be negative)
* @lenp: return location for the string length or an error code on failure
*
* @return:
* length of string, if found or -ve error value if not found
* 0 if found or -ve error value if not found
*/
int ofnode_read_string_index(ofnode node, const char *propname, int index,
const char **outp);
Expand Down

0 comments on commit 32c6a8e

Please sign in to comment.