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)
commit01d89e3d12e07a1a1ee0f8528706441a84eee328
treef690e7daeb0eae0db58b96a8261cb0cec1b4fe3b
parent3e15c315f97401f394ae83ed17fbef72b765222a
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