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>
This commit is contained in:
Simon Glass
2022-07-30 15:52:10 -06:00
committed by Tom Rini
parent 6571559449
commit be0789a8ee
3 changed files with 8 additions and 8 deletions

View File

@@ -1105,8 +1105,8 @@ ofnode ofnode_by_prop_value(ofnode from, const char *propname,
}
}
int ofnode_write_prop(ofnode node, const char *propname, int len,
const void *value)
int ofnode_write_prop(ofnode node, const char *propname, const void *value,
int len)
{
const struct device_node *np = ofnode_to_np(node);
struct property *pp;
@@ -1161,7 +1161,7 @@ int ofnode_write_string(ofnode node, const char *propname, const char *value)
debug("%s: %s = %s", __func__, propname, value);
return ofnode_write_prop(node, propname, strlen(value) + 1, value);
return ofnode_write_prop(node, propname, value, strlen(value) + 1);
}
int ofnode_set_enabled(ofnode node, bool value)