|
@@ -510,14 +510,15 @@ int ofnode_count_phandle_with_args(ofnode node, const char *list_name,
|
|
|
ofnode ofnode_path(const char *path);
|
|
|
|
|
|
/**
|
|
|
- * ofnode_get_chosen_prop() - get the value of a chosen property
|
|
|
+ * ofnode_read_chosen_string() - get the string value of a chosen property
|
|
|
*
|
|
|
- * This looks for a property within the /chosen node and returns its value
|
|
|
+ * This looks for a property within the /chosen node and returns its value,
|
|
|
+ * checking that it is a valid nul-terminated string
|
|
|
*
|
|
|
* @propname: Property name to look for
|
|
|
- * @return property value if found, else NULL
|
|
|
+ * @return string value if found, else NULL
|
|
|
*/
|
|
|
-const char *ofnode_get_chosen_prop(const char *propname);
|
|
|
+const char *ofnode_read_chosen_string(const char *propname);
|
|
|
|
|
|
/**
|
|
|
* ofnode_get_chosen_node() - get a referenced node from the chosen node
|