]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit6442d92c2e69aebadfe7cf1245e74b72129992e2
tree758aba45e1a725e5933aa5f9684413bf70f57e40
parentfe9e66059bbd7de5042e49bb05802bc0da53f51a
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