diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-04-14 20:35:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-17 09:08:33 +0200 |
commit | f09de517765a4fab6a0edcfe32f4e35a056f683f (patch) | |
tree | fd18e0243f56d843f65c699b4910b0aa9db9ab13 /test | |
parent | f42ad4fa1566028ffa82e22be3a551af0fd822cd (diff) | |
download | barebox-f09de517765a4fab6a0edcfe32f4e35a056f683f.tar.gz |
of: implement of_copy_property
For use in fixups, it can be useful to copy a property verbatim from the
barebox DT to the kernel DT. Add a helper that does just that.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230414183545.2039170-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/self/of_manipulation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/self/of_manipulation.c b/test/self/of_manipulation.c index f7f95fa269..64913ac1ea 100644 --- a/test/self/of_manipulation.c +++ b/test/self/of_manipulation.c @@ -63,7 +63,7 @@ static void test_of_basics(struct device_node *root) of_property_write_u32(node2, "property2", 2); of_property_write_u32(node1, "property3", 1); - of_property_write_u32(node1, "property2", 2); + of_copy_property(node2, "property2", node1); of_rename_property(node1, "property3", "property1"); assert_equal(node1, node2); |