dm: core: Add a way to obtain a string list
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>
Showing
- drivers/core/ofnode.c 26 additions, 0 deletionsdrivers/core/ofnode.c
- drivers/core/read.c 6 additions, 0 deletionsdrivers/core/read.c
- include/dm/ofnode.h 20 additions, 0 deletionsinclude/dm/ofnode.h
- include/dm/read.h 28 additions, 0 deletionsinclude/dm/read.h
- test/dm/ofnode.c 20 additions, 0 deletionstest/dm/ofnode.c
Loading
Please register or sign in to comment