diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-30 15:52:10 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-12 08:14:24 -0400 |
commit | be0789a8ee024e685f070dbd8c58736ea3891654 (patch) | |
tree | 4ba504834c7df3cf5029337703da754a9f4287d0 /test | |
parent | 6571559449cef5fe11678c25bc4fdf57b6a4e81f (diff) | |
download | u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.tar.gz u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.tar.bz2 u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.zip |
dm: core: Swap parameters of ofnode_write_prop()
It is normal for the length to come after the value in libfdt. Follow this
same convention with ofnode.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/ofnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index b8d8e440db..0aeaaeb7f8 100644 --- a/test/dm/ofnode.c +++ b/test/dm/ofnode.c @@ -576,8 +576,8 @@ static int dm_test_ofnode_livetree_writing(struct unit_test_state *uts) /* Non-existent in DTB */ ut_asserteq_64(FDT_ADDR_T_NONE, dev_read_addr(dev)); /* reg = 0x42, size = 0x100 */ - ut_assertok(ofnode_write_prop(node, "reg", 8, - "\x00\x00\x00\x42\x00\x00\x01\x00")); + ut_assertok(ofnode_write_prop(node, "reg", + "\x00\x00\x00\x42\x00\x00\x01\x00", 8)); ut_asserteq(0x42, dev_read_addr(dev)); /* Test disabling devices */ |