@@ -915,6 +915,16 @@ of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode,
of_property_count_strings(node, propname);
}
+static int
+of_fwnode_property_read_string_index(const struct fwnode_handle *fwnode,
+ const char *propname, int index,
+ const char **string)
+{
+ const struct device_node *node = to_of_node(fwnode);
+
+ return of_property_read_string_index(node, propname, index, string);
+}
+
static const char *of_fwnode_get_name(const struct fwnode_handle *fwnode)
{
return kbasename(to_of_node(fwnode)->full_name);
@@ -1475,6 +1485,7 @@ const struct fwnode_operations of_fwnode_ops = {
.property_present = of_fwnode_property_present,
.property_read_int_array = of_fwnode_property_read_int_array,
.property_read_string_array = of_fwnode_property_read_string_array,
+ .property_read_string_index = of_fwnode_property_read_string_index,
.get_name = of_fwnode_get_name,
.get_name_prefix = of_fwnode_get_name_prefix,
.get_parent = of_fwnode_get_parent,
Implement .property_read_string_index callback using of_property_read_string_index(). Signed-off-by: Clément Léger <clement.leger@bootlin.com> --- drivers/of/property.c | 11 +++++++++++ 1 file changed, 11 insertions(+)