dm: core: Expand integer-reading tests
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:18 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:42 +0000 (22:43 -0400)
commit66d0d0c188db9e816c5b18e8823a8d8bf5e9cd63
tree382d7c8364b9c1cdbe4a6665410bd2312e1b462f
parent8909066199281b86bf4ee7673ec6d7983dd12a26
dm: core: Expand integer-reading tests

The current tests do not cover all the behaviour. Add some more.

Tidy up a few inconsistencies between livetree and flattree which come to
light with these tests. Also drop the -ENODATA error since it is never
actually returned.

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