]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (10134): v4l2 doc: set v4l2_dev instead of parent.
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 23 Dec 2008 15:17:23 +0000 (12:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 2 Jan 2009 19:10:56 +0000 (17:10 -0200)
Update the documentation now that the v4l2_dev field is in.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/video4linux/v4l2-framework.txt

index ba9344294d6f9e97f2df0d3b07d6401753a7ed98..38d054aa0e0f93e810054e895746cdb10ff211cc 100644 (file)
@@ -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;