Commit 98019f5e authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] v4l2-framework.txt: updated v4l2_fh_init documentation

v4l2_fh_init now returns void instead of int, updated the doc.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 71c6c4c9
...@@ -817,11 +817,7 @@ int my_open(struct file *file) ...@@ -817,11 +817,7 @@ int my_open(struct file *file)
... ...
ret = v4l2_fh_init(&my_fh->fh, vfd); v4l2_fh_init(&my_fh->fh, vfd);
if (ret) {
kfree(my_fh);
return ret;
}
... ...
...@@ -844,7 +840,7 @@ int my_release(struct file *file) ...@@ -844,7 +840,7 @@ int my_release(struct file *file)
Below is a short description of the v4l2_fh functions used: Below is a short description of the v4l2_fh functions used:
int v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)
Initialise the file handle. This *MUST* be performed in the driver's Initialise the file handle. This *MUST* be performed in the driver's
v4l2_file_operations->open() handler. v4l2_file_operations->open() handler.
......
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