summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-30 10:38:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 23:37:20 +0200
commitb6089182316d831c3bfe0d96994df7e372a43c1b (patch)
tree5d46f81f7c92167ddb0a7426eec45b4a0e1aef98 /common/state
parent2d36433aa8f360b3c9fce3f4efc0a34c69444694 (diff)
downloadbarebox-b6089182316d831c3bfe0d96994df7e372a43c1b.tar.gz
barebox-b6089182316d831c3bfe0d96994df7e372a43c1b.tar.xz
treewide: Use of_property_write_string() where appropriate
Replace users which use of_set_property() to set a property to a string with of_property_write_string(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/state.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/state/state.c b/common/state/state.c
index 4020d5e1ea..02bb1bb24a 100644
--- a/common/state/state.c
+++ b/common/state/state.c
@@ -167,9 +167,8 @@ static int state_convert_node_variable(struct state *state,
if ((conv == STATE_CONVERT_TO_NODE)
|| (conv == STATE_CONVERT_FIXUP)) {
- ret = of_set_property(new_node, "type",
- vtype->type_name,
- strlen(vtype->type_name) + 1, 1);
+ ret = of_property_write_string(new_node, "type",
+ vtype->type_name);
if (ret)
goto out;