]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt: Add functions to retrieve strings
authorThierry Reding <treding@nvidia.com>
Tue, 26 Aug 2014 15:33:52 +0000 (17:33 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 22:56:41 +0000 (16:56 -0600)
commit5094eb408a5de69cce8e6bc5564fda10eb79eba0
treeb776b923538e7556387a406a0e68498a261d8b6e
parentfc503c1791f35294d04495cd8ba3794bb6f15055
fdt: Add functions to retrieve strings

Given a device tree node, a property name and an index, the new function
fdt_get_string_index() will return in an output argument a pointer to
the index'th string in the property's value.

The fdt_get_string() is a shortcut for the above with the index being 0.

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