Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125522
b: refs/heads/master
c: dfa9a5a
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 2, 2009
1 parent 5869550 commit 0c1870e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 50a2a8b35edec09aff900a9b1c629776e11c5c88
refs/heads/master: dfa9a5ae679ff2d23caa995d0f55a19abaf0596e
6 changes: 2 additions & 4 deletions trunk/Documentation/video4linux/v4l2-framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,7 @@ allocated memory.

You should also set these fields:

- parent: set to the parent device (same device as was used to register
v4l2_device).
- v4l2_dev: set to the v4l2_device parent device.
- name: set to something descriptive and unique.
- fops: set to the file_operations struct.
- ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance
Expand Down Expand Up @@ -516,5 +515,4 @@ void *video_drvdata(struct file *file);

You can go from a video_device struct to the v4l2_device struct using:

struct v4l2_device *v4l2_dev = dev_get_drvdata(vdev->parent);

struct v4l2_device *v4l2_dev = vdev->v4l2_dev;

0 comments on commit 0c1870e

Please sign in to comment.