fdt: Add a do_fixup_by_path_string() function
PATCH v5 1/2 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.
--- include/fdt_support.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
include/fdt_support.h +7 -0
@@ -36,6 +36,13 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop, const void *val, int len, int create);void do_fixup_by_path_u32 (void *fdt,const char *path,const char *prop,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, const char *pname, const void *pval, int plen, const char *prop, const void *val, int len,
Signature · 1 line
1.5.6.5
PATCH v5 1/2 fdt: Add a do_fixup_by_path_string() function
Dear Chunhe Lan,
Quoted 8 lines · In message <[email protected]> you…
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 fordo_fixup_by_path()that calls strlen on the argument.Signed-off-by Chunhe Lan <[email protected]>--- include/fdt_support.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
This is v5, but there is no log of changes.
This change log is MANDATORY!!
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Men don't talk peace unless they're ready to back it up with war. -- Col. Green, "The Savage Curtain", stardate 5906.4
PATCH v5 1/2 fdt: Add a do_fixup_by_path_string() function
Quoted 9 lines · Wolfgang Denk
Dear Chunhe Lan,
In message <[email protected]>
Quoted 5 lines · you
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 fordo_fixup_by_path()that calls strlen on the argument.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Chunhe Lan <[email protected]>--- include/fdt_support.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)This is v5, but there is no log of changes.
This change log is MANDATORY!!
OK.
Thanks.
-Jack LanQuoted 3 lines
Best regards,
Wolfgang Denk