summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-11 14:13:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 10:31:25 +0200
commit1187df45bf9e7a780b76587c96c7f6b4696a3f96 (patch)
treead65b5a9765eb8d4f98c145271bb8e5aed8b410e /include
parentcf7b9c3d15a17c8b74bb37a0f8064aaed65f234d (diff)
downloadbarebox-1187df45bf9e7a780b76587c96c7f6b4696a3f96.tar.gz
barebox-1187df45bf9e7a780b76587c96c7f6b4696a3f96.tar.xz
of: add of_diff()
of_diff compares two device trees against each other and prints a diff-like result. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index b5f54dd4e5..c8275e169b 100644
--- a/include/of.h
+++ b/include/of.h
@@ -104,6 +104,7 @@ void of_print_property(const void *data, int len);
void of_print_cmdline(struct device_node *root);
void of_print_nodes(struct device_node *node, int indent);
+void of_diff(struct device_node *a, struct device_node *b, int indent);
int of_probe(void);
int of_parse_dtb(struct fdt_header *fdt);
struct device_node *of_unflatten_dtb(const void *fdt);