aboutsummaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2011-06-11 09:37:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:53:08 -0400
commitb7a80f341da5d40a4d483f8c9246133c8591de87 (patch)
tree98bd4f15629558717652ebed51e5a3f7c93480cc /sound/i2c
parent6a529c1a4a87e0f5d143ad3bc0d37179332f210e (diff)
[media] tea575x: remove useless input ioctls
Remove empty and useless g_input and s_input ioctls. This fixes one fail of v4l2-compliance test. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'sound/i2c')
-rw-r--r--sound/i2c/other/tea575x-tuner.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c
index beb0e86537cd..484a35b3715f 100644
--- a/sound/i2c/other/tea575x-tuner.c
+++ b/sound/i2c/other/tea575x-tuner.c
@@ -269,19 +269,6 @@ static int tea575x_s_ctrl(struct v4l2_ctrl *ctrl)
269 return -EINVAL; 269 return -EINVAL;
270} 270}
271 271
272static int vidioc_g_input(struct file *filp, void *priv, unsigned int *i)
273{
274 *i = 0;
275 return 0;
276}
277
278static int vidioc_s_input(struct file *filp, void *priv, unsigned int i)
279{
280 if (i != 0)
281 return -EINVAL;
282 return 0;
283}
284
285static const struct v4l2_file_operations tea575x_fops = { 272static const struct v4l2_file_operations tea575x_fops = {
286 .owner = THIS_MODULE, 273 .owner = THIS_MODULE,
287 .unlocked_ioctl = video_ioctl2, 274 .unlocked_ioctl = video_ioctl2,
@@ -293,8 +280,6 @@ static const struct v4l2_ioctl_ops tea575x_ioctl_ops = {
293 .vidioc_s_tuner = vidioc_s_tuner, 280 .vidioc_s_tuner = vidioc_s_tuner,
294 .vidioc_g_audio = vidioc_g_audio, 281 .vidioc_g_audio = vidioc_g_audio,
295 .vidioc_s_audio = vidioc_s_audio, 282 .vidioc_s_audio = vidioc_s_audio,
296 .vidioc_g_input = vidioc_g_input,
297 .vidioc_s_input = vidioc_s_input,
298 .vidioc_g_frequency = vidioc_g_frequency, 283 .vidioc_g_frequency = vidioc_g_frequency,
299 .vidioc_s_frequency = vidioc_s_frequency, 284 .vidioc_s_frequency = vidioc_s_frequency,
300}; 285};