From 2747362062d4286e47cb13dbdfddfebc6d355dca Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Tue, 26 Jun 2018 10:34:07 +0100 Subject: Introduce new fdt helper to read string properties Introduced fdtw_read_string() to read string properties. Change-Id: I854eef0390632cf2eaddd2dce60cdb98c117de43 Signed-off-by: Antonio Nino Diaz --- include/common/fdt_wrappers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h index 3eae944e5..a0fe6b753 100644 --- a/include/common/fdt_wrappers.h +++ b/include/common/fdt_wrappers.h @@ -14,6 +14,9 @@ int fdtw_read_cells(const void *dtb, int node, const char *prop, unsigned int cells, void *value); +int fdtw_read_string(const void *dtb, int node, const char *prop, + char *str, size_t size); int fdtw_write_inplace_cells(void *dtb, int node, const char *prop, unsigned int cells, void *value); + #endif /* __FDT_WRAPPERS__ */ -- cgit v1.2.3