Skip to content

Commit 9732d64

Browse files
andy-shevjic23
authored andcommitted
device property: Use fwnode_property_string_array_count()
Use fwnode_property_string_array_count() instead of open coded variant. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230808162800.61651-2-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent e472085 commit 9732d64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ int fwnode_property_match_string(const struct fwnode_handle *fwnode,
473473
const char **values;
474474
int nval, ret;
475475

476-
nval = fwnode_property_read_string_array(fwnode, propname, NULL, 0);
476+
nval = fwnode_property_string_array_count(fwnode, propname);
477477
if (nval < 0)
478478
return nval;
479479

0 commit comments

Comments
 (0)