]> git.baikalelectronics.ru Git - kernel.git/commit
of: Add for_each_endpoint_of_node helper macro
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 14 Apr 2014 15:53:25 +0000 (17:53 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 23 Feb 2015 10:42:23 +0000 (11:42 +0100)
commite1185b9c883b7e85d70ebf94d9e6c7fa85cd4b45
tree6cfbd1cfb1af19c550a6a3e263f3fb63c625d0d0
parent84c3852d264b295e21ff67144f0df3b50edbda1f
of: Add for_each_endpoint_of_node helper macro

Note that while of_graph_get_next_endpoint decrements the reference count
of the child node passed to it, of_node_put(child) still has to be called
manually when breaking out of the loop.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
include/linux/of_graph.h