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

V4L/DVB (5905): ivtv-fb: Use proper ioctl value

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent be383bd3
...@@ -424,10 +424,10 @@ static int ivtvfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long ar ...@@ -424,10 +424,10 @@ static int ivtvfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long ar
finish_wait(&itv->vsync_waitq, &wait); finish_wait(&itv->vsync_waitq, &wait);
return rc; return rc;
case IVTVFB_IOCTL_PREP_FRAME: { case IVTVFB_IOC_DMA_FRAME: {
struct ivtvfb_ioctl_dma_host_to_ivtv_args args; struct ivtvfb_dma_frame args;
IVTV_FB_DEBUG_INFO("IVTVFB_IOCTL_PREP_FRAME\n"); IVTV_FB_DEBUG_INFO("IVTVFB_IOC_DMA_FRAME\n");
if (copy_from_user(&args, (void __user *)arg, sizeof(args))) if (copy_from_user(&args, (void __user *)arg, sizeof(args)))
return -EFAULT; return -EFAULT;
......
...@@ -23,13 +23,12 @@ ...@@ -23,13 +23,12 @@
/* Framebuffer external API */ /* Framebuffer external API */
struct ivtvfb_ioctl_dma_host_to_ivtv_args { struct ivtvfb_dma_frame {
void __user *source; void __user *source;
unsigned long dest_offset; unsigned long dest_offset;
int count; int count;
}; };
/* Framebuffer ioctls should use the range 1 - 28 */ #define IVTVFB_IOC_DMA_FRAME _IOW ('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame)
#define IVTVFB_IOCTL_PREP_FRAME _IOW('@', 3, struct ivtvfb_ioctl_dma_host_to_ivtv_args)
#endif #endif
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