Skip to content
Snippets Groups Projects
Commit 42b7600d authored by Simon Glass's avatar Simon Glass
Browse files

libfdt: Drop inlining of fdt_path_offset()


The fdt_path_offset() function is not inlined in upstream libfdt. Adjust
U-Boot's version to match.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent df87e6b1
No related branches found
No related tags found
No related merge requests found
...@@ -410,10 +410,7 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen); ...@@ -410,10 +410,7 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
* -FDT_ERR_BADSTRUCTURE, * -FDT_ERR_BADSTRUCTURE,
* -FDT_ERR_TRUNCATED, standard meanings. * -FDT_ERR_TRUNCATED, standard meanings.
*/ */
static inline int fdt_path_offset(const void *fdt, const char *path) int fdt_path_offset(const void *fdt, const char *path);
{
return fdt_path_offset_namelen(fdt, path, strlen(path));
}
/** /**
* fdt_get_name - retrieve the name of a given node * fdt_get_name - retrieve the name of a given node
......
...@@ -204,6 +204,11 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) ...@@ -204,6 +204,11 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
return offset; return offset;
} }
int fdt_path_offset(const void *fdt, const char *path)
{
return fdt_path_offset_namelen(fdt, path, strlen(path));
}
const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) const char *fdt_get_name(const void *fdt, int nodeoffset, int *len)
{ {
const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment