The patch number 10134 was added via Hans Verkuil <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [email protected]

------

From: Hans Verkuil  <[email protected]>
v4l2 doc: set v4l2_dev instead of parent.


Update the documentation now that the v4l2_dev field is in.

Priority: normal

Signed-off-by: Hans Verkuil <[email protected]>


---

 linux/Documentation/video4linux/v4l2-framework.txt |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff -r f03ab4ab3f87 -r a11cf6774c04 
linux/Documentation/video4linux/v4l2-framework.txt
--- a/linux/Documentation/video4linux/v4l2-framework.txt        Mon Dec 22 
13:13:11 2008 +0100
+++ b/linux/Documentation/video4linux/v4l2-framework.txt        Tue Dec 23 
16:17:23 2008 +0100
@@ -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;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/a11cf6774c0465a6831724b79a274b20613c532e

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to