Fix definition of of_property_count_strings() to be extern

svn path=/dists/sid/linux/; revision=22136
This commit is contained in:
Ben Hutchings 2014-12-08 03:06:51 +00:00
parent 7a25e019b0
commit 30071ee8d9
1 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ wrappers to exported extern functions, to maintain the ABI.
/**
* of_find_node_by_name - Find a node by its "name" property
* @from: The node to start searching from or NULL, the node
@@ -1460,6 +1466,52 @@ int of_property_read_string_helper(struc
@@ -1460,6 +1466,51 @@ int of_property_read_string_helper(struc
}
EXPORT_SYMBOL_GPL(of_property_read_string_helper);
@ -40,8 +40,7 @@ wrappers to exported extern functions, to maintain the ABI.
+ * does not have a value, and -EILSEQ if the string is not null-terminated
+ * within the length of the property data.
+ */
+static inline int of_property_count_strings(struct device_node *np,
+ const char *propname)
+int of_property_count_strings(struct device_node *np, const char *propname)
+{
+ return of_property_read_string_helper(np, propname, NULL, 0, 0);
+}