summaryrefslogtreecommitdiff
path: root/include/dm/read.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-01-27 18:49:47 +0300
committerSimon Glass <sjg@chromium.org>2020-02-06 05:33:45 +0300
commitf262d4ca4b2bf8a99acb37c6151c54cd80251566 (patch)
treeb61079187edfb4d66f8fed45577f694e083beafb /include/dm/read.h
parentbd933bfd834364bca6cc6f3a62e4255090a5bec1 (diff)
downloadu-boot-f262d4ca4b2bf8a99acb37c6151c54cd80251566.tar.xz
dm: core: Add a way to read platdata for all child devices
When generating ACPI tables we need to make sure that all devices have read their platform data, so that they can generate the tables correctly. Rather than adding this code in ACPI, create a core function to handle it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/read.h')
-rw-r--r--include/dm/read.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/read.h b/include/dm/read.h
index 92a7328fc8..da8c7f25e7 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -844,7 +844,8 @@ static inline ofnode dev_read_next_subnode(ofnode node)
}
static inline const uint8_t *dev_read_u8_array_ptr(const struct udevice *dev,
- const char *propname, size_t sz)
+ const char *propname,
+ size_t sz)
{
return ofnode_read_u8_array_ptr(dev_ofnode(dev), propname, sz);
}