mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-08 12:45:29 -05:00
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>
This commit is contained in:
parent
554fde2c77
commit
2218387a8c
7 changed files with 142 additions and 1 deletions
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
|
|
@ -49,6 +49,7 @@ tmp.*
|
|||
/setprop_inplace
|
||||
/sized_cells
|
||||
/string_escapes
|
||||
/stringlist
|
||||
/subnode_iterate
|
||||
/subnode_offset
|
||||
/supernode_atdepth_offset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue