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

V4L/DVB (7885): ivtv/cx18: add compat_ioctl entries

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 53c8ba95
...@@ -36,12 +36,13 @@ ...@@ -36,12 +36,13 @@
#define CX18_DSP0_INTERRUPT_MASK 0xd0004C #define CX18_DSP0_INTERRUPT_MASK 0xd0004C
static struct file_operations cx18_v4l2_enc_fops = { static struct file_operations cx18_v4l2_enc_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = cx18_v4l2_read, .read = cx18_v4l2_read,
.open = cx18_v4l2_open, .open = cx18_v4l2_open,
.ioctl = cx18_v4l2_ioctl, .ioctl = cx18_v4l2_ioctl,
.release = cx18_v4l2_close, .compat_ioctl = v4l_compat_ioctl32,
.poll = cx18_v4l2_enc_poll, .release = cx18_v4l2_close,
.poll = cx18_v4l2_enc_poll,
}; };
/* offset from 0 to register ts v4l2 minors on */ /* offset from 0 to register ts v4l2 minors on */
......
...@@ -44,23 +44,25 @@ ...@@ -44,23 +44,25 @@
#include "ivtv-streams.h" #include "ivtv-streams.h"
static const struct file_operations ivtv_v4l2_enc_fops = { static const struct file_operations ivtv_v4l2_enc_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ivtv_v4l2_read, .read = ivtv_v4l2_read,
.write = ivtv_v4l2_write, .write = ivtv_v4l2_write,
.open = ivtv_v4l2_open, .open = ivtv_v4l2_open,
.ioctl = ivtv_v4l2_ioctl, .ioctl = ivtv_v4l2_ioctl,
.release = ivtv_v4l2_close, .compat_ioctl = v4l_compat_ioctl32,
.poll = ivtv_v4l2_enc_poll, .release = ivtv_v4l2_close,
.poll = ivtv_v4l2_enc_poll,
}; };
static const struct file_operations ivtv_v4l2_dec_fops = { static const struct file_operations ivtv_v4l2_dec_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ivtv_v4l2_read, .read = ivtv_v4l2_read,
.write = ivtv_v4l2_write, .write = ivtv_v4l2_write,
.open = ivtv_v4l2_open, .open = ivtv_v4l2_open,
.ioctl = ivtv_v4l2_ioctl, .ioctl = ivtv_v4l2_ioctl,
.release = ivtv_v4l2_close, .compat_ioctl = v4l_compat_ioctl32,
.poll = ivtv_v4l2_dec_poll, .release = ivtv_v4l2_close,
.poll = ivtv_v4l2_dec_poll,
}; };
#define IVTV_V4L2_DEC_MPG_OFFSET 16 /* offset from 0 to register decoder mpg v4l2 minors on */ #define IVTV_V4L2_DEC_MPG_OFFSET 16 /* offset from 0 to register decoder mpg v4l2 minors on */
......
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