aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc-v4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pwc/pwc-v4l.c')
-rw-r--r--drivers/media/video/pwc/pwc-v4l.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c
index 2ef1668638f9..8ca4d22b4384 100644
--- a/drivers/media/video/pwc/pwc-v4l.c
+++ b/drivers/media/video/pwc/pwc-v4l.c
@@ -362,23 +362,6 @@ long pwc_video_do_ioctl(struct file *file, unsigned int cmd, void *arg)
362 362
363 363
364 switch (cmd) { 364 switch (cmd) {
365#ifdef CONFIG_VIDEO_V4L1_COMPAT
366 /* mmap() functions */
367 case VIDIOCGMBUF:
368 {
369 /* Tell the user program how much memory is needed for a mmap() */
370 struct video_mbuf *vm = arg;
371 int i;
372
373 memset(vm, 0, sizeof(*vm));
374 vm->size = pwc_mbufs * pdev->len_per_image;
375 vm->frames = pwc_mbufs; /* double buffering should be enough for most applications */
376 for (i = 0; i < pwc_mbufs; i++)
377 vm->offsets[i] = i * pdev->len_per_image;
378 break;
379 }
380#endif
381
382 /* V4L2 Layer */ 365 /* V4L2 Layer */
383 case VIDIOC_QUERYCAP: 366 case VIDIOC_QUERYCAP:
384 { 367 {