The use of strings to access a dict is a bit ugly. Use a namedtuple for this instead.
Signed-off-by: Simon Glass <s...@chromium.org> --- tools/dtoc/dtb_platdata.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) Applied to u-boot-dm, thanks!