fdt: Add a function to get the index of a string
authorThierry Reding <treding@nvidia.com>
Tue, 26 Aug 2014 15:33:51 +0000 (17:33 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 22:56:40 +0000 (16:56 -0600)
commitfc503c1791f35294d04495cd8ba3794bb6f15055
tree533bf4e7806abd8a90b41e8ec6a7c7390fe8d47f
parentbc4147ab2d698bf7375a10af73ce34d76129edff
fdt: Add a function to get the index of a string

Given a device tree node and a property name, the new fdt_find_string()
function will look up a given string in the string list contained in the
property's value and return its index.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
include/libfdt.h
lib/libfdt/fdt_ro.c