dm: core: Reimplement ofnode_read_size()
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:45 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:45 +0000 (19:33 -0700)
commit1aada6313ca9b9e9123a4118c78558ef413e1039
treef5199e4a2cb45617d9ddf38012645f421d616a85
parenta8167d8ee2305f688d970f7ea4c38d7ca9b205ca
dm: core: Reimplement ofnode_read_size()

Now that we have ofnode_read_prop() we can rewrite this function using
that one, reducing the amount of duplicated code.

Update ofnode_read_size() and move it up next to the other similar
functions.

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