Re: [U-Boot] [PATCH v2 08/22] dm: core: Add a function to read into a unsigned int

2018-12-14 Thread sjg
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:

[U-Boot] [PATCH v2 08/22] dm: core: Add a function to read into a unsigned int

2018-12-10 Thread Simon Glass
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: