Patrick Delaunay 89f68302ca dm: add cells_count parameter in *_count_phandle_with_args
The cell_count argument is required when cells_name is NULL.

This patch adds this parameter in live tree API
- of_count_phandle_with_args
- ofnode_count_phandle_with_args
- dev_count_phandle_with_args

This parameter solves issue when these API is used to count
the number of element of a cell without cell name. This parameter
allow to force the size cell.

For example:
  count = dev_count_phandle_with_args(dev, "array", NULL, 3);

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-10-06 09:07:54 -06:00
..
2020-07-28 19:30:39 -06:00
2020-09-01 13:38:38 +08:00
2020-09-01 13:38:39 +08:00
2020-09-01 17:00:27 +08:00
2020-10-05 14:10:59 -04:00
2020-07-28 19:30:39 -06:00
2020-08-03 22:19:54 -04:00
2020-10-05 14:10:59 -04:00
2020-01-24 23:06:49 +05:30
2020-09-24 08:33:47 -04:00