diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-06-09 09:48:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-06 16:27:05 -0400 |
commit | 074689d692e129082e1846e71870a0c95c1eb3eb (patch) | |
tree | 8a1c37785b8dfb98a3b2e522c92e9eb2e7f27c40 /drivers/media/video/ivtv | |
parent | 4a085168b59ec0fb18eb7fa023dcc47f4db14655 (diff) |
[media] ivtv: don't mess with vfd->debug
This is now controlled by sysfs.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 12 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.h | 1 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-streams.c | 4 |
3 files changed, 2 insertions, 15 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index f7d57b3f2842..32a591062d0b 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -1830,18 +1830,6 @@ static long ivtv_default(struct file *file, void *fh, bool valid_prio, | |||
1830 | return 0; | 1830 | return 0; |
1831 | } | 1831 | } |
1832 | 1832 | ||
1833 | long ivtv_v4l2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | ||
1834 | { | ||
1835 | struct video_device *vfd = video_devdata(filp); | ||
1836 | long ret; | ||
1837 | |||
1838 | if (ivtv_debug & IVTV_DBGFLG_IOCTL) | ||
1839 | vfd->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG; | ||
1840 | ret = video_ioctl2(filp, cmd, arg); | ||
1841 | vfd->debug = 0; | ||
1842 | return ret; | ||
1843 | } | ||
1844 | |||
1845 | static const struct v4l2_ioctl_ops ivtv_ioctl_ops = { | 1833 | static const struct v4l2_ioctl_ops ivtv_ioctl_ops = { |
1846 | .vidioc_querycap = ivtv_querycap, | 1834 | .vidioc_querycap = ivtv_querycap, |
1847 | .vidioc_s_audio = ivtv_s_audio, | 1835 | .vidioc_s_audio = ivtv_s_audio, |
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.h b/drivers/media/video/ivtv/ivtv-ioctl.h index 89185caeafae..7c553d16579b 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.h +++ b/drivers/media/video/ivtv/ivtv-ioctl.h | |||
@@ -31,6 +31,5 @@ void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id *std); | |||
31 | void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std); | 31 | void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std); |
32 | int ivtv_s_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); | 32 | int ivtv_s_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); |
33 | int ivtv_s_input(struct file *file, void *fh, unsigned int inp); | 33 | int ivtv_s_input(struct file *file, void *fh, unsigned int inp); |
34 | long ivtv_v4l2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); | ||
35 | 34 | ||
36 | #endif | 35 | #endif |
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index 6738592aa35d..87990c5f0910 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c | |||
@@ -50,7 +50,7 @@ static const struct v4l2_file_operations ivtv_v4l2_enc_fops = { | |||
50 | .read = ivtv_v4l2_read, | 50 | .read = ivtv_v4l2_read, |
51 | .write = ivtv_v4l2_write, | 51 | .write = ivtv_v4l2_write, |
52 | .open = ivtv_v4l2_open, | 52 | .open = ivtv_v4l2_open, |
53 | .unlocked_ioctl = ivtv_v4l2_ioctl, | 53 | .unlocked_ioctl = video_ioctl2, |
54 | .release = ivtv_v4l2_close, | 54 | .release = ivtv_v4l2_close, |
55 | .poll = ivtv_v4l2_enc_poll, | 55 | .poll = ivtv_v4l2_enc_poll, |
56 | }; | 56 | }; |
@@ -60,7 +60,7 @@ static const struct v4l2_file_operations ivtv_v4l2_dec_fops = { | |||
60 | .read = ivtv_v4l2_read, | 60 | .read = ivtv_v4l2_read, |
61 | .write = ivtv_v4l2_write, | 61 | .write = ivtv_v4l2_write, |
62 | .open = ivtv_v4l2_open, | 62 | .open = ivtv_v4l2_open, |
63 | .unlocked_ioctl = ivtv_v4l2_ioctl, | 63 | .unlocked_ioctl = video_ioctl2, |
64 | .release = ivtv_v4l2_close, | 64 | .release = ivtv_v4l2_close, |
65 | .poll = ivtv_v4l2_dec_poll, | 65 | .poll = ivtv_v4l2_dec_poll, |
66 | }; | 66 | }; |