xen/device-tree: Add dt_count_phandle_with_args helper
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tue, 21 May 2019 17:37:33 +0000 (20:37 +0300)
committerJulien Grall <julien.grall@arm.com>
Mon, 10 Jun 2019 19:39:54 +0000 (20:39 +0100)
commit4cfc40799ab998056103c15ffe3bb9fc777c26f8
tree08fb515ed7d8629f111c9d74789c95c7b2475961
parentc38a6cfc3b65e4d50f7c5efb4bc83eec120ff0d7
xen/device-tree: Add dt_count_phandle_with_args helper

Port Linux helper of_count_phandle_with_args for counting
number of phandles in a property.

Please note, this helper is ported from Linux v4.6.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/common/device_tree.c
xen/include/xen/device_tree.h