Commit f7842cfd authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Mauro Carvalho Chehab

[media] v4l: of: Correct v4l2_of_parse_endpoint() kernel-doc

The v4l2_of_parse_endpoint function kernel-doc says that the return value
is always 0. But that is not true since the function can fail and a error
negative code is returned on failure. So correct the kernel-doc to match.
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 8aeec38f
...@@ -146,7 +146,7 @@ static void v4l2_of_parse_parallel_bus(const struct device_node *node, ...@@ -146,7 +146,7 @@ static void v4l2_of_parse_parallel_bus(const struct device_node *node,
* variable without a low fixed limit. Please use * variable without a low fixed limit. Please use
* v4l2_of_alloc_parse_endpoint() in new drivers instead. * v4l2_of_alloc_parse_endpoint() in new drivers instead.
* *
* Return: 0. * Return: 0 on success or a negative error code on failure.
*/ */
int v4l2_of_parse_endpoint(const struct device_node *node, int v4l2_of_parse_endpoint(const struct device_node *node,
struct v4l2_of_endpoint *endpoint) struct v4l2_of_endpoint *endpoint)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment