diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-05-17 06:31:04 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-18 03:25:53 -0500 |
| commit | 9ff889b612ae3c36a537b8f023dd0201412de87f (patch) | |
| tree | b248bbb6c7096ff6820ece07698aaeaf2d25af15 /include | |
| parent | 792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4 (diff) | |
[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')
| -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 3a8a84124b44..3480cd00d5c1 100644 --- a/include/media/v4l2-of.h +++ b/include/media/v4l2-of.h | |||
| @@ -72,8 +72,8 @@ struct v4l2_of_endpoint { | |||
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | #ifdef CONFIG_OF | 74 | #ifdef CONFIG_OF |
| 75 | void v4l2_of_parse_endpoint(const struct device_node *node, | 75 | int v4l2_of_parse_endpoint(const struct device_node *node, |
| 76 | struct v4l2_of_endpoint *link); | 76 | struct v4l2_of_endpoint *endpoint); |
| 77 | struct device_node *v4l2_of_get_next_endpoint(const struct device_node *parent, | 77 | struct device_node *v4l2_of_get_next_endpoint(const struct device_node *parent, |
| 78 | struct device_node *previous); | 78 | struct device_node *previous); |
| 79 | struct device_node *v4l2_of_get_remote_port_parent( | 79 | struct device_node *v4l2_of_get_remote_port_parent( |
