diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-08-08 19:27:55 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-11-16 22:10:26 +0300 |
commit | 086386311b3620059d0253eda511f88ca4cdeceb (patch) | |
tree | 0ba9ba2d521f70513dd4e0d6324efff5ba176978 /drivers/base | |
parent | 0300fa851f38864495e6cb107d9a24d30dcb5e19 (diff) | |
download | linux-086386311b3620059d0253eda511f88ca4cdeceb.tar.xz |
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/property.c b/drivers/base/property.c index 8c40abed7852..3bb9505f1631 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -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; |