aboutsummaryrefslogtreecommitdiff
path: root/lib/fdtdec.c
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 /lib/fdtdec.c
parent46cb067803bef50cb8a1334a56897d05b5f85e02 (diff)
downloadu-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.zip
u-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.tar.gz
u-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.tar.bz2
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 'lib/fdtdec.c')
-rw-r--r--lib/fdtdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index f124f05..a0ecc72 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1523,9 +1523,9 @@ skip_compat:
}
int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
- unsigned int index, const char *name,
- const char **compatibles, unsigned int count,
- const struct fdt_memory *carveout)
+ unsigned int index, const struct fdt_memory *carveout,
+ const char *name, const char **compatibles,
+ unsigned int count)
{
uint32_t phandle;
int err, offset, len;