Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261408
b: refs/heads/master
c: 98019f5
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 748f75b commit 10245ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71c6c4c918696625164ffdac4ece9f83bd4a6694
refs/heads/master: 98019f5e88ef912eb6fdbe5b23fed16c9ba230ee
8 changes: 2 additions & 6 deletions trunk/Documentation/video4linux/v4l2-framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,7 @@ int my_open(struct file *file)

...

ret = v4l2_fh_init(&my_fh->fh, vfd);
if (ret) {
kfree(my_fh);
return ret;
}
v4l2_fh_init(&my_fh->fh, vfd);

...

Expand All @@ -844,7 +840,7 @@ int my_release(struct file *file)

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
v4l2_file_operations->open() handler.
Expand Down

0 comments on commit 10245ba

Please sign in to comment.