Skip to content
Snippets Groups Projects
Commit 8ddb10ea authored by Chunhe Lan's avatar Chunhe Lan Committed by Gerald Van Baren
Browse files

fdt: Add a do_fixup_by_path_string() function


The do_fixup_by_path_string() will set the specified node's property to the
value contained in "status". It would just be an inline wrapper for
do_fixup_by_path() that calls strlen on the argument.

Signed-off-by: default avatarChunhe Lan <Chunhe.Lan@freescale.com>
parent d8fffa05
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,13 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop, ...@@ -36,6 +36,13 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop,
const void *val, int len, int create); const void *val, int len, int create);
void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop, void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop,
u32 val, int create); u32 val, int create);
static inline void do_fixup_by_path_string(void *fdt, const char *path,
const char *prop, const char *status)
{
do_fixup_by_path(fdt, path, prop, status, strlen(status) + 1, 1);
}
void do_fixup_by_prop(void *fdt, void do_fixup_by_prop(void *fdt,
const char *pname, const void *pval, int plen, const char *pname, const void *pval, int plen,
const char *prop, const void *val, int len, const char *prop, const void *val, int len,
......
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