Philipp Zabel | fd9fdb7 | 2014-02-10 22:01:48 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * OF graph binding parsing helpers |
| 3 | * |
| 4 | * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd. |
| 5 | * Author: Sylwester Nawrocki <s.nawrocki@samsung.com> |
| 6 | * |
| 7 | * Copyright (C) 2012 Renesas Electronics Corp. |
| 8 | * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
| 9 | * |
| 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. |
| 13 | */ |
| 14 | #ifndef __LINUX_OF_GRAPH_H |
| 15 | #define __LINUX_OF_GRAPH_H |
| 16 | |
| 17 | #ifdef CONFIG_OF |
| 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); |
| 23 | #else |
| 24 | |
| 25 | static inline struct device_node *of_graph_get_next_endpoint( |
| 26 | const struct device_node *parent, |
| 27 | struct device_node *previous) |
| 28 | { |
| 29 | return NULL; |
| 30 | } |
| 31 | |
| 32 | static inline struct device_node *of_graph_get_remote_port_parent( |
| 33 | const struct device_node *node) |
| 34 | { |
| 35 | return NULL; |
| 36 | } |
| 37 | |
| 38 | static inline struct device_node *of_graph_get_remote_port( |
| 39 | const struct device_node *node) |
| 40 | { |
| 41 | return NULL; |
| 42 | } |
| 43 | |
| 44 | #endif /* CONFIG_OF */ |
| 45 | |
| 46 | #endif /* __LINUX_OF_GRAPH_H */ |