aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox/dts
diff options
context:
space:
mode:
authorSimon Glass2020-01-27 08:49:43 -0700
committerSimon Glass2020-02-05 19:33:45 -0700
commit14ca9f7f5abf7b94d71cfd466fb339bf64f58bda (patch)
tree83895f7de742e7fd0c77cfa0374086f13cd1abda /arch/sandbox/dts
parent74d594a20e035a2dfce232093774c50d986cb9ff (diff)
dm: core: Rename ofnode_get_chosen_prop()
This function is actually intended to read a string rather than a property. All of its current callers use it that way. Also there is no way to return the length of the property from this function. Rename it to better indicate its purpose, using ofnode_read as the prefix since this matches most other functions. Also add some tests which are missing for these functions. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/dts')
-rw-r--r--arch/sandbox/dts/test.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index e529c54d8de..a04afd4076b 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -813,6 +813,8 @@
chosen {
#address-cells = <1>;
#size-cells = <1>;
+ setting = "sunrise ohoka";
+ other-node = "/some-bus/c-test@5";
chosen-test {
compatible = "denx,u-boot-fdt-test";
reg = <9 1>;