diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 16:17:23 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 16:17:23 +0100 |
commit | d1e126d1421066319ebc9da9c8084c425cfdc762 (patch) | |
tree | 0d066772ed1be585ecc1b8a2117b3762a2100e1d /linux/Documentation/video4linux/v4l2-framework.txt | |
parent | 570ee61c1b4f1c0b8d89cd799676f9b7dde51c24 (diff) | |
download | mediapointer-dvb-s2-d1e126d1421066319ebc9da9c8084c425cfdc762.tar.gz mediapointer-dvb-s2-d1e126d1421066319ebc9da9c8084c425cfdc762.tar.bz2 |
v4l2 doc: set v4l2_dev instead of parent.
From: Hans Verkuil <hverkuil@xs4all.nl>
Update the documentation now that the v4l2_dev field is in.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/Documentation/video4linux/v4l2-framework.txt')
-rw-r--r-- | linux/Documentation/video4linux/v4l2-framework.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/Documentation/video4linux/v4l2-framework.txt b/linux/Documentation/video4linux/v4l2-framework.txt index ba9344294..38d054aa0 100644 --- a/linux/Documentation/video4linux/v4l2-framework.txt +++ b/linux/Documentation/video4linux/v4l2-framework.txt @@ -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 @@ -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; |