[media] of: move graph helpers from drivers/media/v4l2-core to drivers/of
[firefly-linux-kernel-4.4.55.git] / include / media / v4l2-of.h
index 541cea4122e90ac56d7549c8aea0d442e44093f2..3a49735c56a0b5671f57e00878d0943dd4550115 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/list.h>
 #include <linux/types.h>
 #include <linux/errno.h>
+#include <linux/of_graph.h>
 
 #include <media/v4l2-mediabus.h>
 
@@ -72,11 +73,6 @@ struct v4l2_of_endpoint {
 #ifdef CONFIG_OF
 int v4l2_of_parse_endpoint(const struct device_node *node,
                           struct v4l2_of_endpoint *endpoint);
-struct device_node *v4l2_of_get_next_endpoint(const struct device_node *parent,
-                                       struct device_node *previous);
-struct device_node *v4l2_of_get_remote_port_parent(
-                                       const struct device_node *node);
-struct device_node *v4l2_of_get_remote_port(const struct device_node *node);
 #else /* CONFIG_OF */
 
 static inline int v4l2_of_parse_endpoint(const struct device_node *node,
@@ -85,25 +81,6 @@ static inline int v4l2_of_parse_endpoint(const struct device_node *node,
        return -ENOSYS;
 }
 
-static inline struct device_node *v4l2_of_get_next_endpoint(
-                                       const struct device_node *parent,
-                                       struct device_node *previous)
-{
-       return NULL;
-}
-
-static inline struct device_node *v4l2_of_get_remote_port_parent(
-                                       const struct device_node *node)
-{
-       return NULL;
-}
-
-static inline struct device_node *v4l2_of_get_remote_port(
-                                       const struct device_node *node)
-{
-       return NULL;
-}
-
 #endif /* CONFIG_OF */
 
 #endif /* _V4L2_OF_H */