aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-07-20 09:30:32 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:03:04 -0400
commitd715e766ddf4786a06abe6a841e956ad8a875963 (patch)
tree54785eb04145a565b14f080dae807fbeea145525
parentbe383bd312c4defab8bd4bde8c06fea5bfe0996b (diff)
V4L/DVB (5905): ivtv-fb: Use proper ioctl value
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/ivtv/ivtv-fb.c6
-rw-r--r--include/media/ivtv-fb.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fb.c b/drivers/media/video/ivtv/ivtv-fb.c
index 01cd65328e8a..55265bd5c250 100644
--- a/drivers/media/video/ivtv/ivtv-fb.c
+++ b/drivers/media/video/ivtv/ivtv-fb.c
@@ -424,10 +424,10 @@ static int ivtvfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long ar
424 finish_wait(&itv->vsync_waitq, &wait); 424 finish_wait(&itv->vsync_waitq, &wait);
425 return rc; 425 return rc;
426 426
427 case IVTVFB_IOCTL_PREP_FRAME: { 427 case IVTVFB_IOC_DMA_FRAME: {
428 struct ivtvfb_ioctl_dma_host_to_ivtv_args args; 428 struct ivtvfb_dma_frame args;
429 429
430 IVTV_FB_DEBUG_INFO("IVTVFB_IOCTL_PREP_FRAME\n"); 430 IVTV_FB_DEBUG_INFO("IVTVFB_IOC_DMA_FRAME\n");
431 if (copy_from_user(&args, (void __user *)arg, sizeof(args))) 431 if (copy_from_user(&args, (void __user *)arg, sizeof(args)))
432 return -EFAULT; 432 return -EFAULT;
433 433
diff --git a/include/media/ivtv-fb.h b/include/media/ivtv-fb.h
index 902b2f3d3cb6..3b746f5e3c9e 100644
--- a/include/media/ivtv-fb.h
+++ b/include/media/ivtv-fb.h
@@ -23,13 +23,12 @@
23 23
24/* Framebuffer external API */ 24/* Framebuffer external API */
25 25
26struct ivtvfb_ioctl_dma_host_to_ivtv_args { 26struct ivtvfb_dma_frame {
27 void __user *source; 27 void __user *source;
28 unsigned long dest_offset; 28 unsigned long dest_offset;
29 int count; 29 int count;
30}; 30};
31 31
32/* Framebuffer ioctls should use the range 1 - 28 */ 32#define IVTVFB_IOC_DMA_FRAME _IOW ('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame)
33#define IVTVFB_IOCTL_PREP_FRAME _IOW('@', 3, struct ivtvfb_ioctl_dma_host_to_ivtv_args)
34 33
35#endif 34#endif