Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Ondrej Zary and committed by
Mauro Carvalho Chehab
b7a80f34 6a529c1a

-15
-15
sound/i2c/other/tea575x-tuner.c
··· 269 269 return -EINVAL; 270 270 } 271 271 272 - static int vidioc_g_input(struct file *filp, void *priv, unsigned int *i) 273 - { 274 - *i = 0; 275 - return 0; 276 - } 277 - 278 - static 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 - 285 272 static const struct v4l2_file_operations tea575x_fops = { 286 273 .owner = THIS_MODULE, 287 274 .unlocked_ioctl = video_ioctl2, ··· 280 293 .vidioc_s_tuner = vidioc_s_tuner, 281 294 .vidioc_g_audio = vidioc_g_audio, 282 295 .vidioc_s_audio = vidioc_s_audio, 283 - .vidioc_g_input = vidioc_g_input, 284 - .vidioc_s_input = vidioc_s_input, 285 296 .vidioc_g_frequency = vidioc_g_frequency, 286 297 .vidioc_s_frequency = vidioc_s_frequency, 287 298 };