dm: core: Export a new function to read platdata
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:20 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commitbcd90cb6928414e14942c01af374863d4049a25d
treea723be66a27d3376b82553841b38a969cc766b5e
parent04e19ffded40d97502961485a3ce7db6f3d590be
dm: core: Export a new function to read platdata

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
include/dm/device-internal.h