dm: core: Add ofnode_read_prop()
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:44 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:45 +0000 (19:33 -0700)
commita8167d8ee2305f688d970f7ea4c38d7ca9b205ca
tree758aba45e1a725e5933aa5f9684413bf70f57e40
parent14ca9f7f5abf7b94d71cfd466fb339bf64f58bda
dm: core: Add ofnode_read_prop()

Add a new function to read a property that supports reading the length as
well.

Reimplement ofnode_read_string() using it and fix its comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c