summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
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 /arch/sandbox
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 'arch/sandbox')
-rw-r--r--arch/sandbox/board/hostfile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index c1a2643bc7..e7d92ea031 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -133,8 +133,7 @@ static int of_hostfile_fixup(struct device_node *root, void *ctx)
node = of_new_node(root, hf->devname);
- ret = of_set_property(node, "compatible", hostfile_dt_ids->compatible,
- strlen(hostfile_dt_ids->compatible) + 1, 1);
+ ret = of_property_write_string(node, "compatible", hostfile_dt_ids->compatible);
if (ret)
return ret;
@@ -146,8 +145,7 @@ static int of_hostfile_fixup(struct device_node *root, void *ctx)
if (ret)
return ret;
- ret = of_set_property(node, "barebox,filename", hf->filename,
- strlen(hf->filename) + 1, 1);
+ ret = of_property_write_string(node, "barebox,filename", hf->filename);
return ret;
}