Commit 20ae6a07 authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci_vpfe: cast to correct types.

parent 7307837a
...@@ -890,23 +890,23 @@ static int vpfe_doioctl(struct inode *inode, struct file *file, ...@@ -890,23 +890,23 @@ static int vpfe_doioctl(struct inode *inode, struct file *file,
fh->io_allowed = TRUE; fh->io_allowed = TRUE;
vpfe->io_usrs = 1; vpfe->io_usrs = 1;
INIT_LIST_HEAD(&vpfe->dma_queue); INIT_LIST_HEAD(&vpfe->dma_queue);
ret = videobuf_reqbufs(&vpfe->bufqueue, arg); ret = videobuf_reqbufs(&vpfe->bufqueue, (struct v4l2_requestbuffers *)arg);
up(&vpfe->lock); up(&vpfe->lock);
break; break;
case VIDIOC_QUERYBUF: case VIDIOC_QUERYBUF:
ret = videobuf_querybuf(&vpfe->bufqueue, arg); ret = videobuf_querybuf(&vpfe->bufqueue, (struct v4l2_buffer *)arg);
break; break;
case VIDIOC_QBUF: case VIDIOC_QBUF:
if (!fh->io_allowed) if (!fh->io_allowed)
ret = -EACCES; ret = -EACCES;
else else
ret = videobuf_qbuf(&vpfe->bufqueue, arg); ret = videobuf_qbuf(&vpfe->bufqueue, (struct v4l2_buffer *)arg);
break; break;
case VIDIOC_DQBUF: case VIDIOC_DQBUF:
if (!fh->io_allowed) if (!fh->io_allowed)
ret = -EACCES; ret = -EACCES;
else else
ret = videobuf_dqbuf(&vpfe->bufqueue, arg, 0); ret = videobuf_dqbuf(&vpfe->bufqueue, (struct v4l2_buffer *)arg, file->f_flags & O_NONBLOCK);
break; break;
case VIDIOC_STREAMON: case VIDIOC_STREAMON:
if (!fh->io_allowed) if (!fh->io_allowed)
......
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