Commit 1dd8728e authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] v4l2-framework.txt: document v4l2_dont_use_cmd

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5126f259
...@@ -619,6 +619,16 @@ in your v4l2_file_operations struct. ...@@ -619,6 +619,16 @@ in your v4l2_file_operations struct.
Do not use .ioctl! This is deprecated and will go away in the future. Do not use .ioctl! This is deprecated and will go away in the future.
In some cases you want to tell the core that a function you had specified in
your v4l2_ioctl_ops should be ignored. You can mark such ioctls by calling this
function before video_device_register is called:
void v4l2_dont_use_cmd(struct video_device *vdev, unsigned int cmd);
This tends to be needed if based on external factors (e.g. which card is
being used) you want to turns off certain features in v4l2_ioctl_ops without
having to make a new struct.
The v4l2_file_operations struct is a subset of file_operations. The main The v4l2_file_operations struct is a subset of file_operations. The main
difference is that the inode argument is omitted since it is never used. difference is that the inode argument is omitted since it is never used.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment