Commit 2218387a authored by Thierry Reding's avatar Thierry Reding Committed by David Gibson
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
[Changed testcase name --dwg]
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 554fde2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment