hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/of_graph.h
....@@ -38,6 +38,7 @@
3838 child = of_graph_get_next_endpoint(parent, child))
3939
4040 #ifdef CONFIG_OF
41
+bool of_graph_is_present(const struct device_node *node);
4142 int of_graph_parse_endpoint(const struct device_node *node,
4243 struct of_endpoint *endpoint);
4344 int of_graph_get_endpoint_count(const struct device_node *np);
....@@ -56,6 +57,11 @@
5657 u32 port, u32 endpoint);
5758 #else
5859
60
+static inline bool of_graph_is_present(const struct device_node *node)
61
+{
62
+ return false;
63
+}
64
+
5965 static inline int of_graph_parse_endpoint(const struct device_node *node,
6066 struct of_endpoint *endpoint)
6167 {