dm: core: Rename ofnode_get_chosen_prop()
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:43 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:45 +0000 (19:33 -0700)
commit14ca9f7f5abf7b94d71cfd466fb339bf64f58bda
tree83895f7de742e7fd0c77cfa0374086f13cd1abda
parent74d594a20e035a2dfce232093774c50d986cb9ff
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>
arch/sandbox/dts/test.dts
board/theobroma-systems/puma_rk3399/puma-rk3399.c
board/xilinx/common/board.c
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c