diff options
author | 2020-09-09 10:54:24 +0200 | |
---|---|---|
committer | 2020-09-14 10:53:43 +0200 | |
commit | 6b6ff4acb310a0351005474673f1e09a90020efd (patch) | |
tree | ff0f2ee99dfe3988897fa86be2dc6501d0baecaa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpiolib: switch to simpler IDA interface (diff) | |
download | linux-dev-6b6ff4acb310a0351005474673f1e09a90020efd.tar.xz linux-dev-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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions