]> git.baikalelectronics.ru Git - uboot.git/commit
dm: add cells_count parameter in live DT APIs of_parse_phandle_with_args
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 10 Sep 2020 16:26:17 +0000 (18:26 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:54:13 +0000 (12:54 -0600)
commit18d51306abd3bca3404135156761965ab015e8b6
treef690e7daeb0eae0db58b96a8261cb0cec1b4fe3b
parent595856c4895372ad66265a9bca85faf8d6bd099d
dm: add cells_count parameter in live DT APIs of_parse_phandle_with_args

In the live tree API ofnode_parse_phandle_with_args, the cell_count
argument must be used when cells_name is NULL.

But this argument is not provided to the live DT function
of_parse_phandle_with_args even it is provided to
fdtdec_parse_phandle_with_args.

This patch adds support of the cells_count parameter in dev_ and
of_node API to allow migration and support of live DT:
- of_parse_phandle_with_args

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/of_access.c
drivers/core/ofnode.c
include/dm/of_access.h