diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-08-08 18:27:55 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-11-16 20:10:26 +0100 |
commit | 086386311b3620059d0253eda511f88ca4cdeceb (patch) | |
tree | 0ba9ba2d521f70513dd4e0d6324efff5ba176978 /drivers/base/property.c | |
parent | iio: resolver: ad2s1210: add reset gpio support (diff) | |
download | linux-086386311b3620059d0253eda511f88ca4cdeceb.tar.xz linux-086386311b3620059d0253eda511f88ca4cdeceb.zip |
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/property.c')
-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; |