diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-01-30 03:49:53 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 15:11:06 -0500 |
commit | 1a64b63481f6ad5f2db6ee8f3cad31e882ad8a27 (patch) | |
tree | 67c3f8d4bb845d884a3eb92bd8ca891d5eba8406 /drivers/media/radio/radio-miropcm20.c | |
parent | f122d9a83e5d1e73f34da9fb832c9b005030b9cb (diff) |
[media] radio-miropcm20: remove input/audio ioctls
Such ioctls are not valid for radio devices.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-miropcm20.c')
-rw-r--r-- | drivers/media/radio/radio-miropcm20.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/media/radio/radio-miropcm20.c b/drivers/media/radio/radio-miropcm20.c index 3a89e50ade6c..4b7c1640edb0 100644 --- a/drivers/media/radio/radio-miropcm20.c +++ b/drivers/media/radio/radio-miropcm20.c | |||
@@ -178,32 +178,6 @@ static int vidioc_s_ctrl(struct file *file, void *priv, | |||
178 | return 0; | 178 | return 0; |
179 | } | 179 | } |
180 | 180 | ||
181 | static int vidioc_g_input(struct file *filp, void *priv, unsigned int *i) | ||
182 | { | ||
183 | *i = 0; | ||
184 | return 0; | ||
185 | } | ||
186 | |||
187 | static int vidioc_s_input(struct file *filp, void *priv, unsigned int i) | ||
188 | { | ||
189 | return i ? -EINVAL : 0; | ||
190 | } | ||
191 | |||
192 | static int vidioc_g_audio(struct file *file, void *priv, | ||
193 | struct v4l2_audio *a) | ||
194 | { | ||
195 | a->index = 0; | ||
196 | strlcpy(a->name, "Radio", sizeof(a->name)); | ||
197 | a->capability = V4L2_AUDCAP_STEREO; | ||
198 | return 0; | ||
199 | } | ||
200 | |||
201 | static int vidioc_s_audio(struct file *file, void *priv, | ||
202 | const struct v4l2_audio *a) | ||
203 | { | ||
204 | return a->index ? -EINVAL : 0; | ||
205 | } | ||
206 | |||
207 | static const struct v4l2_ioctl_ops pcm20_ioctl_ops = { | 181 | static const struct v4l2_ioctl_ops pcm20_ioctl_ops = { |
208 | .vidioc_querycap = vidioc_querycap, | 182 | .vidioc_querycap = vidioc_querycap, |
209 | .vidioc_g_tuner = vidioc_g_tuner, | 183 | .vidioc_g_tuner = vidioc_g_tuner, |
@@ -213,10 +187,6 @@ static const struct v4l2_ioctl_ops pcm20_ioctl_ops = { | |||
213 | .vidioc_queryctrl = vidioc_queryctrl, | 187 | .vidioc_queryctrl = vidioc_queryctrl, |
214 | .vidioc_g_ctrl = vidioc_g_ctrl, | 188 | .vidioc_g_ctrl = vidioc_g_ctrl, |
215 | .vidioc_s_ctrl = vidioc_s_ctrl, | 189 | .vidioc_s_ctrl = vidioc_s_ctrl, |
216 | .vidioc_g_audio = vidioc_g_audio, | ||
217 | .vidioc_s_audio = vidioc_s_audio, | ||
218 | .vidioc_g_input = vidioc_g_input, | ||
219 | .vidioc_s_input = vidioc_s_input, | ||
220 | }; | 190 | }; |
221 | 191 | ||
222 | static int __init pcm20_init(void) | 192 | static int __init pcm20_init(void) |