diff options
-rw-r--r-- | Documentation/video4linux/v4l2-framework.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt index 38d054aa0e0f..3b483c1e0124 100644 --- a/Documentation/video4linux/v4l2-framework.txt +++ b/Documentation/video4linux/v4l2-framework.txt | |||
@@ -392,13 +392,16 @@ You should also set these fields: | |||
392 | 392 | ||
393 | - v4l2_dev: set to the v4l2_device parent device. | 393 | - v4l2_dev: set to the v4l2_device parent device. |
394 | - name: set to something descriptive and unique. | 394 | - name: set to something descriptive and unique. |
395 | - fops: set to the file_operations struct. | 395 | - fops: set to the v4l2_file_operations struct. |
396 | - ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance | 396 | - ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance |
397 | (highly recommended to use this and it might become compulsory in the | 397 | (highly recommended to use this and it might become compulsory in the |
398 | future!), then set this to your v4l2_ioctl_ops struct. | 398 | future!), then set this to your v4l2_ioctl_ops struct. |
399 | 399 | ||
400 | If you use v4l2_ioctl_ops, then you should set .unlocked_ioctl to | 400 | If you use v4l2_ioctl_ops, then you should set either .unlocked_ioctl or |
401 | __video_ioctl2 or .ioctl to video_ioctl2 in your file_operations struct. | 401 | .ioctl to video_ioctl2 in your v4l2_file_operations struct. |
402 | |||
403 | The v4l2_file_operations struct is a subset of file_operations. The main | ||
404 | difference is that the inode argument is omitted since it is never used. | ||
402 | 405 | ||
403 | 406 | ||
404 | video_device registration | 407 | video_device registration |