diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-30 15:52:10 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-12 08:14:24 -0400 |
commit | be0789a8ee024e685f070dbd8c58736ea3891654 (patch) | |
tree | 4ba504834c7df3cf5029337703da754a9f4287d0 /include | |
parent | 6571559449cef5fe11678c25bc4fdf57b6a4e81f (diff) | |
download | u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.zip u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.tar.gz u-boot-be0789a8ee024e685f070dbd8c58736ea3891654.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/ofnode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index d7ad5dc..071a9d6 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -1114,13 +1114,13 @@ int ofnode_device_is_compatible(ofnode node, const char *compat); * * @node: The node for whose property should be set * @propname: The name of the property to set - * @len: The length of the new value of the property * @value: The new value of the property (must be valid prior to calling * the function) + * @len: The length of the new value of the property * Return: 0 if successful, -ve on error */ -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); /** * ofnode_write_string() - Set a string property of a ofnode |