提交 dfa9a5ae 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (10134): v4l2 doc: set v4l2_dev instead of parent.

Update the documentation now that the v4l2_dev field is in.
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 50a2a8b3
...@@ -390,8 +390,7 @@ allocated memory. ...@@ -390,8 +390,7 @@ allocated memory.
You should also set these fields: You should also set these fields:
- parent: set to the parent device (same device as was used to register - v4l2_dev: set to the v4l2_device parent device.
v4l2_device).
- name: set to something descriptive and unique. - name: set to something descriptive and unique.
- fops: set to the file_operations struct. - fops: set to the file_operations struct.
- ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance - ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance
...@@ -516,5 +515,4 @@ void *video_drvdata(struct file *file); ...@@ -516,5 +515,4 @@ void *video_drvdata(struct file *file);
You can go from a video_device struct to the v4l2_device struct using: 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;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册