summaryrefslogtreecommitdiff
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-09-03 16:16:20 +0300
committerTom Warren <twarren@nvidia.com>2021-10-14 00:18:30 +0300
commit9019487608c8afe7d3fc34cb5192df064b60cdb7 (patch)
tree6dabc96014ac83f7f614e30fbafee7073ef6197e /include/fdtdec.h
parent46cb067803bef50cb8a1334a56897d05b5f85e02 (diff)
downloadu-boot-9019487608c8afe7d3fc34cb5192df064b60cdb7.tar.xz
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 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 5a6a7cbd99..d360d7bce4 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -1110,16 +1110,16 @@ int fdtdec_get_carveout(const void *blob, const char *node,
* @param prop_name name of the property in which to store the phandle of
* the carveout
* @param index index of the phandle to store
- * @param name base name of the reserved-memory node to create
* @param carveout information about the carveout to add
+ * @param name base name of the reserved-memory node to create
* @param compatibles compatible strings to set for the carveout
* @param count number of compatible strings
* @return 0 on success or a negative error code on failure
*/
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);
/**
* Set up the device tree ready for use