summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-02-07 09:27:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-07 09:35:41 +0100
commitcfa1e13fba762f3be4d193523ddcc7ea76018c53 (patch)
treebdfce3b8707526a2572ec1a4fc78af1e0bb0b0b4 /include
parent616ff0948058b96c258caa95c93b2b61ec746ca7 (diff)
downloadbarebox-cfa1e13fba762f3be4d193523ddcc7ea76018c53.tar.gz
barebox-cfa1e13fba762f3be4d193523ddcc7ea76018c53.tar.xz
of: report whether of_diff found differences in return code
Tests may want to leverage of_diff to verify that fixups proceeded as expected. of_diff lends itself nicely to that by being silent in case of success and just reporting diff on error. Add a return code to make it usable in follow-up tests. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220207082801.1052894-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/of.h b/include/of.h
index 216d0ee763..b449d10ec7 100644
--- a/include/of.h
+++ b/include/of.h
@@ -107,7 +107,7 @@ void of_print_cmdline(struct device_node *root);
void of_print_nodes(struct device_node *node, int indent);
void of_print_properties(struct device_node *node);
-void of_diff(struct device_node *a, struct device_node *b, int indent);
+int 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, int size);