diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-05-17 07:31:04 -0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:52:36 +0900 |
commit | a863a6a14fbf8c911f68994f0a493169652f6563 (patch) | |
tree | 700e4ee98fc82a51aa2e4ff5064dae01a6d6c360 /include/media | |
parent | d35b111879fab8fd55b4ca402d417ee69f29a521 (diff) | |
download | linux-3.10-a863a6a14fbf8c911f68994f0a493169652f6563.tar.gz linux-3.10-a863a6a14fbf8c911f68994f0a493169652f6563.tar.bz2 linux-3.10-a863a6a14fbf8c911f68994f0a493169652f6563.zip |
upstream: [media] v4l: of: Return an int in v4l2_of_parse_endpoint()
When CONFIG_OF is not defined the v4l2_of_parse_endpoint() function is
defined as a stub that returns -ENOSYS. Make the real function return an
integer as well to be able to differentiate between the two cases.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-of.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/v4l2-of.h b/include/media/v4l2-of.h index 3a8a84124b4..3480cd00d5c 100644 --- a/include/media/v4l2-of.h +++ b/include/media/v4l2-of.h @@ -72,8 +72,8 @@ struct v4l2_of_endpoint { }; #ifdef CONFIG_OF -void v4l2_of_parse_endpoint(const struct device_node *node, - struct v4l2_of_endpoint *link); +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( |