[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1355168499-5847-13-git-send-email-s.nawrocki@samsung.com>
Date: Mon, 10 Dec 2012 20:41:38 +0100
From: Sylwester Nawrocki <s.nawrocki@...sung.com>
To: g.liakhovetski@....de, linux-media@...r.kernel.org
Cc: grant.likely@...retlab.ca, rob.herring@...xeda.com,
thomas.abraham@...aro.org, t.figa@...sung.com,
sw0312.kim@...sung.com, kyungmin.park@...sung.com,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Sylwester Nawrocki <s.nawrocki@...sung.com>
Subject: [PATCH RFC 12/13] v4l2-of: Corrected v4l2_of_parse_link() function
declaration
v4l2_of_parse_link() return value type is int, not void.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@...sung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@...sung.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists