summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/fdt_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 8f06aacf7a..0091dc3ebe 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -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,
OpenPOWER on IntegriCloud