
10 Jan
2020
10 Jan
'20
9:57 a.m.
Add a new internal function, device_ofdata_to_platdata() to handle allocating private space associated with each device and reading the platform data from the device tree.
Call this new function from device_probe().
Signed-off-by: Simon Glass sjg@chromium.org ---
drivers/core/device.c | 29 +++++++++++++++++++++++++++-- include/dm/device-internal.h | 16 ++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-)
Applied to u-boot-dm, thanks!