commit | 2218387a8cb9270a688775350a07b02db6d03103 | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Wed Sep 30 13:16:12 2015 +1000 |
committer | David Gibson <david@gibson.dropbear.id.au> | Wed Sep 30 13:16:35 2015 +1000 |
tree | fbda4aa5411ded07c649bd624d046adfe2339a33 | |
parent | 554fde2c77bd73de3f5093df3b643ce1553e1f96 [diff] |
fdt: Add a function to count strings Given a device tree node and a property name, the fdt_stringlist_count() function counts the number of strings found in the property value. This also adds a new error code, FDT_ERR_BADVALUE, that the function returns when it encounters a non-NUL-terminated string list. Signed-off-by: Thierry Reding <treding@nvidia.com> [Changed testcase name --dwg] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>