[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
792e8eca55
commit
9ff889b612
@@ -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(
|
||||
|
Reference in New Issue
Block a user