summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-09-03 15:16:20 +0200
committerTom Warren <twarren@nvidia.com>2021-10-13 14:18:30 -0700
commit9019487608c8afe7d3fc34cb5192df064b60cdb7 (patch)
tree6dabc96014ac83f7f614e30fbafee7073ef6197e /test
parent46cb067803bef50cb8a1334a56897d05b5f85e02 (diff)
downloadu-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.tar.gz
u-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.tar.bz2
u-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.zip
fdtdec: Reorder fdtdec_set_carveout() parameters for consistency
The fdtdec_set_carveout() function's parameters are inconsistent with the parameters passed to fdtdec_add_reserved_memory(). Fix up the order to make it more consistent. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'test')
-rw-r--r--test/dm/fdtdec.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/dm/fdtdec.c b/test/dm/fdtdec.c
index 7b543e7b99..385aa77a68 100644
--- a/test/dm/fdtdec.c
+++ b/test/dm/fdtdec.c
@@ -28,21 +28,18 @@ static int dm_test_fdtdec_set_carveout(struct unit_test_state *uts)
resv.start = 0x1000;
resv.end = 0x2000;
- ut_assertok(fdtdec_set_carveout(blob, "/a-test",
- "memory-region", 2, "test_resv1",
- NULL, 0, &resv));
+ ut_assertok(fdtdec_set_carveout(blob, "/a-test", "memory-region", 2,
+ &resv, "test_resv1", NULL, 0));
resv.start = 0x10000;
resv.end = 0x20000;
- ut_assertok(fdtdec_set_carveout(blob, "/a-test",
- "memory-region", 1, "test_resv2",
- NULL, 0, &resv));
+ ut_assertok(fdtdec_set_carveout(blob, "/a-test", "memory-region", 1,
+ &resv, "test_resv2", NULL, 0));
resv.start = 0x100000;
resv.end = 0x200000;
- ut_assertok(fdtdec_set_carveout(blob, "/a-test",
- "memory-region", 0, "test_resv3",
- NULL, 0, &resv));
+ ut_assertok(fdtdec_set_carveout(blob, "/a-test", "memory-region", 0,
+ &resv, "test_resv3", NULL, 0));
offset = fdt_path_offset(blob, "/a-test");
ut_assert(offset > 0);