]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add a function to read into a unsigned int
authorSimon Glass <sjg@chromium.org>
Mon, 10 Dec 2018 17:37:37 +0000 (10:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commitf1bf1a00aa62cd140c39c72842dcbb727540d19a
tree7487cc794f79e8bc32e1ee6c366d3b4e22466924
parent9f564f9345c0d997ac5cecd07a9a3c8dbf748004
dm: core: Add a function to read into a unsigned int

The current dev_read...() functions use s32 and u32 which are convenient
for device tree but not so useful for normal code, which often wants to
use normal integers for values.

Add a helper which supports returning an unsigned int. Also add signed
versions of the unsigned readers.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
drivers/core/read.c
include/dm/read.h
test/dm/test-fdt.c