of_graph: add of_graph_get_endpoint_count()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Apr 2017 01:32:47 +0000 (01:32 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 17 May 2017 09:21:16 +0000 (10:21 +0100)
commitac1e6958d3be29a28889b09e4eec1798eccc1606
treea78bffc3a433d9d68bb2a86e949c44894ece7ee9
parent0ef472a973ebbfc20f2f12769e77a8cfd3612778
of_graph: add of_graph_get_endpoint_count()

OF graph want to count its endpoint number, same as
of_get_child_count(). This patch adds of_graph_get_endpoint_count()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/of/base.c
include/linux/of_graph.h