diff options
| author | Bartosz Golaszewski <[email protected]> | 2020-09-09 08:54:24 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2020-09-14 08:53:43 +0000 |
| commit | 6b6ff4acb310a0351005474673f1e09a90020efd (patch) | |
| tree | ff0f2ee99dfe3988897fa86be2dc6501d0baecaa /lib/string_helpers.c | |
| parent | gpiolib: switch to simpler IDA interface (diff) | |
| download | kernel-6b6ff4acb310a0351005474673f1e09a90020efd.tar.gz kernel-6b6ff4acb310a0351005474673f1e09a90020efd.zip | |
device: property: add helpers to count items in string arrays
Instead of doing the following:
count = device_property_read_string_array(dev, propname, NULL, 0);
Let's provide inline helpers with hardcoded arguments for counting
strings in property arrays.
Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
