
Hi Ilias,
On Tue, 26 Oct 2021 at 13:21, Ilias Apalodimas ilias.apalodimas@linaro.org wrote:
On Sun, 24 Oct 2021 at 02:26, Simon Glass sjg@chromium.org wrote:
At present we support reading a string list a string at a time. Apart from being inefficient, this makes it impossible to separate reading of the devicetree into the of_to_plat() method where it belongs, since any code which needs access to the string must read it from the devicetree.
Add a function which returns the string property as an array of pointers to the strings, which is easily used by clients.
Signed-off-by: Simon Glass sjg@chromium.org
(no changes since v1)
drivers/core/ofnode.c | 26 ++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 20 ++++++++++++++++++++ include/dm/read.h | 28 ++++++++++++++++++++++++++++ test/dm/ofnode.c | 20 ++++++++++++++++++++ 5 files changed, 100 insertions(+)
Applied to u-boot-dm/next, thanks!