2 * OF graph binding parsing helpers
4 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
5 * Author: Sylwester Nawrocki <s.nawrocki@samsung.com>
7 * Copyright (C) 2012 Renesas Electronics Corp.
8 * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of version 2 of the GNU General Public License as
12 * published by the Free Software Foundation.
14 #ifndef __LINUX_OF_GRAPH_H
15 #define __LINUX_OF_GRAPH_H
18 struct device_node *of_graph_get_next_endpoint(const struct device_node *parent,
19 struct device_node *previous);
20 struct device_node *of_graph_get_remote_port_parent(
21 const struct device_node *node);
22 struct device_node *of_graph_get_remote_port(const struct device_node *node);
25 static inline struct device_node *of_graph_get_next_endpoint(
26 const struct device_node *parent,
27 struct device_node *previous)
32 static inline struct device_node *of_graph_get_remote_port_parent(
33 const struct device_node *node)
38 static inline struct device_node *of_graph_get_remote_port(
39 const struct device_node *node)
44 #endif /* CONFIG_OF */
46 #endif /* __LINUX_OF_GRAPH_H */