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>
This commit is contained in:
parent
0300fa851f
commit
086386311b
@ -473,7 +473,7 @@ int fwnode_property_match_string(const struct fwnode_handle *fwnode,
|
||||
const char **values;
|
||||
int nval, ret;
|
||||
|
||||
nval = fwnode_property_read_string_array(fwnode, propname, NULL, 0);
|
||||
nval = fwnode_property_string_array_count(fwnode, propname);
|
||||
if (nval < 0)
|
||||
return nval;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user