[GIT PULL] of: Add of-graph helpers to loop over endpoints and find ports by id

From: Philipp Zabel
Date: Thu Jan 22 2015 - 03:38:22 EST


Hi Grant,

I have prepared a tag with the of-graph helper patch series last
discussed here: https://lkml.org/lkml/2014/12/23/219

The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672:

Linux 3.19-rc1 (2014-12-20 17:08:50 -0800)

are available in the git repository at:

git://git.pengutronix.de/git/pza/linux tags/of-graph-for-3.20

for you to fetch changes up to ae286de228412c3a60aa5b2707d53ead414028bb:

of: Add of_graph_get_port_by_id function (2015-01-13 13:24:04 +0100)

regards
Philipp

----------------------------------------------------------------
of: Add of-graph helpers to loop over endpoints and find ports by id

This series converts of_graph_get_next_endpoint to decrement the refcount of
the passed prev parameter. This allows to add a for_each_endpoint_of_node
helper macro to loop over all endpoints in a device tree node.
The of_graph_get_port_by_id function is added to retrieve a port by its known
port id (contained in the reg property) from the device tree.

----------------------------------------------------------------
Philipp Zabel (3):
of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint
of: Add for_each_endpoint_of_node helper macro
of: Add of_graph_get_port_by_id function

drivers/coresight/of_coresight.c | 13 ++-----
drivers/gpu/drm/imx/imx-drm-core.c | 13 ++-----
drivers/gpu/drm/rcar-du/rcar_du_kms.c | 15 +++------
drivers/media/platform/soc_camera/soc_camera.c | 3 +-
drivers/of/base.c | 41 ++++++++++++++++++-----
drivers/video/fbdev/omap2/dss/omapdss-boot-init.c | 7 +---
include/linux/of_graph.h | 18 ++++++++++
7 files changed, 62 insertions(+), 48 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/