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>
This commit is contained in:
committed by
Tom Warren
parent
46cb067803
commit
9019487608
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user