Thread (24 messages) 24 messages, 5 authors, 2012-12-31
STALE4897d

[PATCH RFC 12/13] v4l2-of: Corrected v4l2_of_parse_link() function declaration

From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: 2012-12-10 19:42:53
Also in: linux-media, lkml
Subsystem: media input infrastructure (v4l/dvb), the rest · Maintainers: Mauro Carvalho Chehab, Linus Torvalds

v4l2_of_parse_link() return value type is int, not void.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 include/media/v4l2-of.h |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/media/v4l2-of.h b/include/media/v4l2-of.h
index 9b036e6..686d04b 100644
--- a/include/media/v4l2-of.h
+++ b/include/media/v4l2-of.h
@@ -49,10 +49,13 @@ int v4l2_of_parse_data_lanes(const struct device_node *node,
 struct device_node *v4l2_of_get_next_link(const struct device_node *parent,
 					struct device_node *previous);
 struct device_node *v4l2_of_get_remote(const struct device_node *node);
-#else
-static inline void v4l2_of_parse_link(const struct device_node *node,
+
+#else /* CONFIG_OF */
+
+static inline int v4l2_of_parse_link(const struct device_node *node,
 				      struct v4l2_of_link *link)
 {
+	return -ENOSYS;
 }
 
 static inline int v4l2_of_parse_data_lanes(const struct device_node *node,
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help