commit | 6df01f9faac2162a17d577e239dc452fa5f0ab41 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Dec 10 10:37:37 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Dec 13 16:32:49 2018 -0700 |
tree | 7487cc794f79e8bc32e1ee6c366d3b4e22466924 | |
parent | 76072ac3e85ed9dcc483554b96cc0ea34247d978 [diff] |
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>