diff options
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 18 | ||||
-rw-r--r-- | drivers/media/radio/miropcm20-radio.c | 3 | ||||
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-aztech.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek-pci.c | 13 | ||||
-rw-r--r-- | drivers/media/radio/radio-gemtek.c | 13 | ||||
-rw-r--r-- | drivers/media/radio/radio-maestro.c | 12 | ||||
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 15 | ||||
-rw-r--r-- | drivers/media/radio/radio-rtrack2.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmi.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-si470x.c | 22 | ||||
-rw-r--r-- | drivers/media/radio/radio-terratec.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-trust.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-typhoon.c | 14 | ||||
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 14 |
17 files changed, 135 insertions, 101 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 4e3f83e4e48f..1ed88f3abe61 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -85,6 +85,7 @@ | |||
85 | #include <linux/input.h> | 85 | #include <linux/input.h> |
86 | #include <linux/videodev2.h> | 86 | #include <linux/videodev2.h> |
87 | #include <media/v4l2-common.h> | 87 | #include <media/v4l2-common.h> |
88 | #include <media/v4l2-ioctl.h> | ||
88 | #include <linux/usb.h> | 89 | #include <linux/usb.h> |
89 | 90 | ||
90 | /* | 91 | /* |
@@ -444,14 +445,7 @@ static const struct file_operations usb_dsbr100_fops = { | |||
444 | .llseek = no_llseek, | 445 | .llseek = no_llseek, |
445 | }; | 446 | }; |
446 | 447 | ||
447 | /* V4L2 interface */ | 448 | static const struct v4l2_ioctl_ops usb_dsbr100_ioctl_ops = { |
448 | static struct video_device dsbr100_videodev_template = | ||
449 | { | ||
450 | .owner = THIS_MODULE, | ||
451 | .name = "D-Link DSB-R 100", | ||
452 | .type = VID_TYPE_TUNER, | ||
453 | .fops = &usb_dsbr100_fops, | ||
454 | .release = video_device_release, | ||
455 | .vidioc_querycap = vidioc_querycap, | 449 | .vidioc_querycap = vidioc_querycap, |
456 | .vidioc_g_tuner = vidioc_g_tuner, | 450 | .vidioc_g_tuner = vidioc_g_tuner, |
457 | .vidioc_s_tuner = vidioc_s_tuner, | 451 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -466,6 +460,14 @@ static struct video_device dsbr100_videodev_template = | |||
466 | .vidioc_s_input = vidioc_s_input, | 460 | .vidioc_s_input = vidioc_s_input, |
467 | }; | 461 | }; |
468 | 462 | ||
463 | /* V4L2 interface */ | ||
464 | static struct video_device dsbr100_videodev_template = { | ||
465 | .name = "D-Link DSB-R 100", | ||
466 | .fops = &usb_dsbr100_fops, | ||
467 | .ioctl_ops = &usb_dsbr100_ioctl_ops, | ||
468 | .release = video_device_release, | ||
469 | }; | ||
470 | |||
469 | /* check if the device is present and register with v4l and | 471 | /* check if the device is present and register with v4l and |
470 | usb if it is */ | 472 | usb if it is */ |
471 | static int usb_dsbr100_probe(struct usb_interface *intf, | 473 | static int usb_dsbr100_probe(struct usb_interface *intf, |
diff --git a/drivers/media/radio/miropcm20-radio.c b/drivers/media/radio/miropcm20-radio.c index 09fe6f1cdf14..7fd7ee2d32c1 100644 --- a/drivers/media/radio/miropcm20-radio.c +++ b/drivers/media/radio/miropcm20-radio.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/videodev.h> | 24 | #include <linux/videodev.h> |
25 | #include <media/v4l2-common.h> | 25 | #include <media/v4l2-common.h> |
26 | #include <media/v4l2-ioctl.h> | ||
26 | #include "oss/aci.h" | 27 | #include "oss/aci.h" |
27 | #include "miropcm20-rds-core.h" | 28 | #include "miropcm20-rds-core.h" |
28 | 29 | ||
@@ -228,9 +229,7 @@ static const struct file_operations pcm20_fops = { | |||
228 | }; | 229 | }; |
229 | 230 | ||
230 | static struct video_device pcm20_radio = { | 231 | static struct video_device pcm20_radio = { |
231 | .owner = THIS_MODULE, | ||
232 | .name = "Miro PCM 20 radio", | 232 | .name = "Miro PCM 20 radio", |
233 | .type = VID_TYPE_TUNER, | ||
234 | .fops = &pcm20_fops, | 233 | .fops = &pcm20_fops, |
235 | .priv = &pcm20_unit | 234 | .priv = &pcm20_unit |
236 | }; | 235 | }; |
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index 1ec18ed1a733..eba9209b3024 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/uaccess.h> /* copy to/from user */ | 36 | #include <asm/uaccess.h> /* copy to/from user */ |
37 | #include <linux/videodev2.h> /* kernel radio structs */ | 37 | #include <linux/videodev2.h> /* kernel radio structs */ |
38 | #include <media/v4l2-common.h> | 38 | #include <media/v4l2-common.h> |
39 | #include <media/v4l2-ioctl.h> | ||
39 | 40 | ||
40 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 41 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
41 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) | 42 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) |
@@ -388,12 +389,7 @@ static const struct file_operations rtrack_fops = { | |||
388 | .llseek = no_llseek, | 389 | .llseek = no_llseek, |
389 | }; | 390 | }; |
390 | 391 | ||
391 | static struct video_device rtrack_radio= | 392 | static const struct v4l2_ioctl_ops rtrack_ioctl_ops = { |
392 | { | ||
393 | .owner = THIS_MODULE, | ||
394 | .name = "RadioTrack radio", | ||
395 | .type = VID_TYPE_TUNER, | ||
396 | .fops = &rtrack_fops, | ||
397 | .vidioc_querycap = vidioc_querycap, | 393 | .vidioc_querycap = vidioc_querycap, |
398 | .vidioc_g_tuner = vidioc_g_tuner, | 394 | .vidioc_g_tuner = vidioc_g_tuner, |
399 | .vidioc_s_tuner = vidioc_s_tuner, | 395 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -408,6 +404,12 @@ static struct video_device rtrack_radio= | |||
408 | .vidioc_s_ctrl = vidioc_s_ctrl, | 404 | .vidioc_s_ctrl = vidioc_s_ctrl, |
409 | }; | 405 | }; |
410 | 406 | ||
407 | static struct video_device rtrack_radio = { | ||
408 | .name = "RadioTrack radio", | ||
409 | .fops = &rtrack_fops, | ||
410 | .ioctl_ops = &rtrack_ioctl_ops, | ||
411 | }; | ||
412 | |||
411 | static int __init rtrack_init(void) | 413 | static int __init rtrack_init(void) |
412 | { | 414 | { |
413 | if(io==-1) | 415 | if(io==-1) |
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 46cdb549eac7..3fe5504428c5 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/uaccess.h> /* copy to/from user */ | 33 | #include <asm/uaccess.h> /* copy to/from user */ |
34 | #include <linux/videodev2.h> /* kernel radio structs */ | 34 | #include <linux/videodev2.h> /* kernel radio structs */ |
35 | #include <media/v4l2-common.h> | 35 | #include <media/v4l2-common.h> |
36 | #include <media/v4l2-ioctl.h> | ||
36 | 37 | ||
37 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 38 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
38 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) | 39 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) |
@@ -352,12 +353,7 @@ static const struct file_operations aztech_fops = { | |||
352 | .llseek = no_llseek, | 353 | .llseek = no_llseek, |
353 | }; | 354 | }; |
354 | 355 | ||
355 | static struct video_device aztech_radio= | 356 | static const struct v4l2_ioctl_ops aztech_ioctl_ops = { |
356 | { | ||
357 | .owner = THIS_MODULE, | ||
358 | .name = "Aztech radio", | ||
359 | .type = VID_TYPE_TUNER, | ||
360 | .fops = &aztech_fops, | ||
361 | .vidioc_querycap = vidioc_querycap, | 357 | .vidioc_querycap = vidioc_querycap, |
362 | .vidioc_g_tuner = vidioc_g_tuner, | 358 | .vidioc_g_tuner = vidioc_g_tuner, |
363 | .vidioc_s_tuner = vidioc_s_tuner, | 359 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -372,6 +368,12 @@ static struct video_device aztech_radio= | |||
372 | .vidioc_s_ctrl = vidioc_s_ctrl, | 368 | .vidioc_s_ctrl = vidioc_s_ctrl, |
373 | }; | 369 | }; |
374 | 370 | ||
371 | static struct video_device aztech_radio = { | ||
372 | .name = "Aztech radio", | ||
373 | .fops = &aztech_fops, | ||
374 | .ioctl_ops = &aztech_ioctl_ops, | ||
375 | }; | ||
376 | |||
375 | module_param_named(debug,aztech_radio.debug, int, 0644); | 377 | module_param_named(debug,aztech_radio.debug, int, 0644); |
376 | MODULE_PARM_DESC(debug,"activates debug info"); | 378 | MODULE_PARM_DESC(debug,"activates debug info"); |
377 | 379 | ||
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index b14db53ea456..6166e726ed72 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <asm/uaccess.h> /* copy to/from user */ | 39 | #include <asm/uaccess.h> /* copy to/from user */ |
40 | #include <linux/videodev2.h> /* V4L2 API defs */ | 40 | #include <linux/videodev2.h> /* V4L2 API defs */ |
41 | #include <media/v4l2-common.h> | 41 | #include <media/v4l2-common.h> |
42 | #include <media/v4l2-ioctl.h> | ||
42 | #include <linux/param.h> | 43 | #include <linux/param.h> |
43 | #include <linux/pnp.h> | 44 | #include <linux/pnp.h> |
44 | 45 | ||
@@ -569,12 +570,7 @@ static const struct file_operations cadet_fops = { | |||
569 | .llseek = no_llseek, | 570 | .llseek = no_llseek, |
570 | }; | 571 | }; |
571 | 572 | ||
572 | static struct video_device cadet_radio= | 573 | static const struct v4l2_ioctl_ops cadet_ioctl_ops = { |
573 | { | ||
574 | .owner = THIS_MODULE, | ||
575 | .name = "Cadet radio", | ||
576 | .type = VID_TYPE_TUNER, | ||
577 | .fops = &cadet_fops, | ||
578 | .vidioc_querycap = vidioc_querycap, | 574 | .vidioc_querycap = vidioc_querycap, |
579 | .vidioc_g_tuner = vidioc_g_tuner, | 575 | .vidioc_g_tuner = vidioc_g_tuner, |
580 | .vidioc_s_tuner = vidioc_s_tuner, | 576 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -589,6 +585,12 @@ static struct video_device cadet_radio= | |||
589 | .vidioc_s_input = vidioc_s_input, | 585 | .vidioc_s_input = vidioc_s_input, |
590 | }; | 586 | }; |
591 | 587 | ||
588 | static struct video_device cadet_radio = { | ||
589 | .name = "Cadet radio", | ||
590 | .fops = &cadet_fops, | ||
591 | .ioctl_ops = &cadet_ioctl_ops, | ||
592 | }; | ||
593 | |||
592 | #ifdef CONFIG_PNP | 594 | #ifdef CONFIG_PNP |
593 | 595 | ||
594 | static struct pnp_device_id cadet_pnp_devices[] = { | 596 | static struct pnp_device_id cadet_pnp_devices[] = { |
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c index de49be971480..36e754e3ffb2 100644 --- a/drivers/media/radio/radio-gemtek-pci.c +++ b/drivers/media/radio/radio-gemtek-pci.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <linux/pci.h> | 46 | #include <linux/pci.h> |
47 | #include <linux/videodev2.h> | 47 | #include <linux/videodev2.h> |
48 | #include <media/v4l2-common.h> | 48 | #include <media/v4l2-common.h> |
49 | #include <media/v4l2-ioctl.h> | ||
49 | #include <linux/errno.h> | 50 | #include <linux/errno.h> |
50 | 51 | ||
51 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 52 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
@@ -374,11 +375,7 @@ static const struct file_operations gemtek_pci_fops = { | |||
374 | .llseek = no_llseek, | 375 | .llseek = no_llseek, |
375 | }; | 376 | }; |
376 | 377 | ||
377 | static struct video_device vdev_template = { | 378 | static const struct v4l2_ioctl_ops gemtek_pci_ioctl_ops = { |
378 | .owner = THIS_MODULE, | ||
379 | .name = "Gemtek PCI Radio", | ||
380 | .type = VID_TYPE_TUNER, | ||
381 | .fops = &gemtek_pci_fops, | ||
382 | .vidioc_querycap = vidioc_querycap, | 379 | .vidioc_querycap = vidioc_querycap, |
383 | .vidioc_g_tuner = vidioc_g_tuner, | 380 | .vidioc_g_tuner = vidioc_g_tuner, |
384 | .vidioc_s_tuner = vidioc_s_tuner, | 381 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -393,6 +390,12 @@ static struct video_device vdev_template = { | |||
393 | .vidioc_s_ctrl = vidioc_s_ctrl, | 390 | .vidioc_s_ctrl = vidioc_s_ctrl, |
394 | }; | 391 | }; |
395 | 392 | ||
393 | static struct video_device vdev_template = { | ||
394 | .name = "Gemtek PCI Radio", | ||
395 | .fops = &gemtek_pci_fops, | ||
396 | .ioctl_ops = &gemtek_pci_ioctl_ops, | ||
397 | }; | ||
398 | |||
396 | static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci_device_id *pci_id ) | 399 | static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci_device_id *pci_id ) |
397 | { | 400 | { |
398 | struct gemtek_pci_card *card; | 401 | struct gemtek_pci_card *card; |
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c index 81f6aeb1cd11..2b1a6221de6d 100644 --- a/drivers/media/radio/radio-gemtek.c +++ b/drivers/media/radio/radio-gemtek.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <asm/io.h> /* outb, outb_p */ | 23 | #include <asm/io.h> /* outb, outb_p */ |
24 | #include <asm/uaccess.h> /* copy to/from user */ | 24 | #include <asm/uaccess.h> /* copy to/from user */ |
25 | #include <linux/videodev2.h> /* kernel radio structs */ | 25 | #include <linux/videodev2.h> /* kernel radio structs */ |
26 | #include <media/v4l2-ioctl.h> | ||
26 | #include <media/v4l2-common.h> | 27 | #include <media/v4l2-common.h> |
27 | #include <linux/spinlock.h> | 28 | #include <linux/spinlock.h> |
28 | 29 | ||
@@ -552,11 +553,7 @@ static int vidioc_s_audio(struct file *file, void *priv, struct v4l2_audio *a) | |||
552 | return 0; | 553 | return 0; |
553 | } | 554 | } |
554 | 555 | ||
555 | static struct video_device gemtek_radio = { | 556 | static const struct v4l2_ioctl_ops gemtek_ioctl_ops = { |
556 | .owner = THIS_MODULE, | ||
557 | .name = "GemTek Radio card", | ||
558 | .type = VID_TYPE_TUNER, | ||
559 | .fops = &gemtek_fops, | ||
560 | .vidioc_querycap = vidioc_querycap, | 557 | .vidioc_querycap = vidioc_querycap, |
561 | .vidioc_g_tuner = vidioc_g_tuner, | 558 | .vidioc_g_tuner = vidioc_g_tuner, |
562 | .vidioc_s_tuner = vidioc_s_tuner, | 559 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -571,6 +568,12 @@ static struct video_device gemtek_radio = { | |||
571 | .vidioc_s_ctrl = vidioc_s_ctrl | 568 | .vidioc_s_ctrl = vidioc_s_ctrl |
572 | }; | 569 | }; |
573 | 570 | ||
571 | static struct video_device gemtek_radio = { | ||
572 | .name = "GemTek Radio card", | ||
573 | .fops = &gemtek_fops, | ||
574 | .ioctl_ops = &gemtek_ioctl_ops, | ||
575 | }; | ||
576 | |||
574 | /* | 577 | /* |
575 | * Initialization / cleanup related stuff. | 578 | * Initialization / cleanup related stuff. |
576 | */ | 579 | */ |
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c index bddd3c409aa9..0ada1c697e8a 100644 --- a/drivers/media/radio/radio-maestro.c +++ b/drivers/media/radio/radio-maestro.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/pci.h> | 27 | #include <linux/pci.h> |
28 | #include <linux/videodev2.h> | 28 | #include <linux/videodev2.h> |
29 | #include <media/v4l2-common.h> | 29 | #include <media/v4l2-common.h> |
30 | #include <media/v4l2-ioctl.h> | ||
30 | 31 | ||
31 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 32 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
32 | #define RADIO_VERSION KERNEL_VERSION(0,0,6) | 33 | #define RADIO_VERSION KERNEL_VERSION(0,0,6) |
@@ -354,10 +355,7 @@ static u16 __devinit radio_power_on(struct radio_device *dev) | |||
354 | return (ofreq == radio_bits_get(dev)); | 355 | return (ofreq == radio_bits_get(dev)); |
355 | } | 356 | } |
356 | 357 | ||
357 | static struct video_device maestro_radio = { | 358 | static const struct v4l2_ioctl_ops maestro_ioctl_ops = { |
358 | .name = "Maestro radio", | ||
359 | .type = VID_TYPE_TUNER, | ||
360 | .fops = &maestro_fops, | ||
361 | .vidioc_querycap = vidioc_querycap, | 359 | .vidioc_querycap = vidioc_querycap, |
362 | .vidioc_g_tuner = vidioc_g_tuner, | 360 | .vidioc_g_tuner = vidioc_g_tuner, |
363 | .vidioc_s_tuner = vidioc_s_tuner, | 361 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -372,6 +370,12 @@ static struct video_device maestro_radio = { | |||
372 | .vidioc_s_ctrl = vidioc_s_ctrl, | 370 | .vidioc_s_ctrl = vidioc_s_ctrl, |
373 | }; | 371 | }; |
374 | 372 | ||
373 | static struct video_device maestro_radio = { | ||
374 | .name = "Maestro radio", | ||
375 | .fops = &maestro_fops, | ||
376 | .ioctl_ops = &maestro_ioctl_ops, | ||
377 | }; | ||
378 | |||
375 | static int __devinit maestro_probe(struct pci_dev *pdev, | 379 | static int __devinit maestro_probe(struct pci_dev *pdev, |
376 | const struct pci_device_id *ent) | 380 | const struct pci_device_id *ent) |
377 | { | 381 | { |
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 0133ecf3e040..43c75497dc49 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <linux/pci.h> | 44 | #include <linux/pci.h> |
45 | #include <linux/videodev2.h> | 45 | #include <linux/videodev2.h> |
46 | #include <media/v4l2-common.h> | 46 | #include <media/v4l2-common.h> |
47 | #include <media/v4l2-ioctl.h> | ||
47 | 48 | ||
48 | #define DRIVER_VERSION "0.77" | 49 | #define DRIVER_VERSION "0.77" |
49 | 50 | ||
@@ -373,13 +374,7 @@ static int vidioc_s_ctrl (struct file *file, void *priv, | |||
373 | return -EINVAL; | 374 | return -EINVAL; |
374 | } | 375 | } |
375 | 376 | ||
376 | static struct video_device maxiradio_radio = | 377 | static const struct v4l2_ioctl_ops maxiradio_ioctl_ops = { |
377 | { | ||
378 | .owner = THIS_MODULE, | ||
379 | .name = "Maxi Radio FM2000 radio", | ||
380 | .type = VID_TYPE_TUNER, | ||
381 | .fops = &maxiradio_fops, | ||
382 | |||
383 | .vidioc_querycap = vidioc_querycap, | 378 | .vidioc_querycap = vidioc_querycap, |
384 | .vidioc_g_tuner = vidioc_g_tuner, | 379 | .vidioc_g_tuner = vidioc_g_tuner, |
385 | .vidioc_s_tuner = vidioc_s_tuner, | 380 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -394,6 +389,12 @@ static struct video_device maxiradio_radio = | |||
394 | .vidioc_s_ctrl = vidioc_s_ctrl, | 389 | .vidioc_s_ctrl = vidioc_s_ctrl, |
395 | }; | 390 | }; |
396 | 391 | ||
392 | static struct video_device maxiradio_radio = { | ||
393 | .name = "Maxi Radio FM2000 radio", | ||
394 | .fops = &maxiradio_fops, | ||
395 | .ioctl_ops = &maxiradio_ioctl_ops, | ||
396 | }; | ||
397 | |||
397 | static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | 398 | static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
398 | { | 399 | { |
399 | if(!request_region(pci_resource_start(pdev, 0), | 400 | if(!request_region(pci_resource_start(pdev, 0), |
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index 070802103dc3..e2dde0807268 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <asm/uaccess.h> /* copy to/from user */ | 17 | #include <asm/uaccess.h> /* copy to/from user */ |
18 | #include <linux/videodev2.h> /* kernel radio structs */ | 18 | #include <linux/videodev2.h> /* kernel radio structs */ |
19 | #include <media/v4l2-common.h> | 19 | #include <media/v4l2-common.h> |
20 | #include <media/v4l2-ioctl.h> | ||
20 | #include <linux/spinlock.h> | 21 | #include <linux/spinlock.h> |
21 | 22 | ||
22 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 23 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
@@ -294,12 +295,7 @@ static const struct file_operations rtrack2_fops = { | |||
294 | .llseek = no_llseek, | 295 | .llseek = no_llseek, |
295 | }; | 296 | }; |
296 | 297 | ||
297 | static struct video_device rtrack2_radio= | 298 | static const struct v4l2_ioctl_ops rtrack2_ioctl_ops = { |
298 | { | ||
299 | .owner = THIS_MODULE, | ||
300 | .name = "RadioTrack II radio", | ||
301 | .type = VID_TYPE_TUNER, | ||
302 | .fops = &rtrack2_fops, | ||
303 | .vidioc_querycap = vidioc_querycap, | 299 | .vidioc_querycap = vidioc_querycap, |
304 | .vidioc_g_tuner = vidioc_g_tuner, | 300 | .vidioc_g_tuner = vidioc_g_tuner, |
305 | .vidioc_s_tuner = vidioc_s_tuner, | 301 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -314,6 +310,12 @@ static struct video_device rtrack2_radio= | |||
314 | .vidioc_s_input = vidioc_s_input, | 310 | .vidioc_s_input = vidioc_s_input, |
315 | }; | 311 | }; |
316 | 312 | ||
313 | static struct video_device rtrack2_radio = { | ||
314 | .name = "RadioTrack II radio", | ||
315 | .fops = &rtrack2_fops, | ||
316 | .ioctl_ops = &rtrack2_ioctl_ops, | ||
317 | }; | ||
318 | |||
317 | static int __init rtrack2_init(void) | 319 | static int __init rtrack2_init(void) |
318 | { | 320 | { |
319 | if(io==-1) | 321 | if(io==-1) |
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c index 66e052fd3909..bb5d92f104af 100644 --- a/drivers/media/radio/radio-sf16fmi.c +++ b/drivers/media/radio/radio-sf16fmi.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/delay.h> /* udelay */ | 24 | #include <linux/delay.h> /* udelay */ |
25 | #include <linux/videodev2.h> /* kernel radio structs */ | 25 | #include <linux/videodev2.h> /* kernel radio structs */ |
26 | #include <media/v4l2-common.h> | 26 | #include <media/v4l2-common.h> |
27 | #include <media/v4l2-ioctl.h> | ||
27 | #include <linux/isapnp.h> | 28 | #include <linux/isapnp.h> |
28 | #include <asm/io.h> /* outb, outb_p */ | 29 | #include <asm/io.h> /* outb, outb_p */ |
29 | #include <asm/uaccess.h> /* copy to/from user */ | 30 | #include <asm/uaccess.h> /* copy to/from user */ |
@@ -294,12 +295,7 @@ static const struct file_operations fmi_fops = { | |||
294 | .llseek = no_llseek, | 295 | .llseek = no_llseek, |
295 | }; | 296 | }; |
296 | 297 | ||
297 | static struct video_device fmi_radio= | 298 | static const struct v4l2_ioctl_ops fmi_ioctl_ops = { |
298 | { | ||
299 | .owner = THIS_MODULE, | ||
300 | .name = "SF16FMx radio", | ||
301 | .type = VID_TYPE_TUNER, | ||
302 | .fops = &fmi_fops, | ||
303 | .vidioc_querycap = vidioc_querycap, | 299 | .vidioc_querycap = vidioc_querycap, |
304 | .vidioc_g_tuner = vidioc_g_tuner, | 300 | .vidioc_g_tuner = vidioc_g_tuner, |
305 | .vidioc_s_tuner = vidioc_s_tuner, | 301 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -314,6 +310,12 @@ static struct video_device fmi_radio= | |||
314 | .vidioc_s_ctrl = vidioc_s_ctrl, | 310 | .vidioc_s_ctrl = vidioc_s_ctrl, |
315 | }; | 311 | }; |
316 | 312 | ||
313 | static struct video_device fmi_radio = { | ||
314 | .name = "SF16FMx radio", | ||
315 | .fops = &fmi_fops, | ||
316 | .ioctl_ops = &fmi_ioctl_ops, | ||
317 | }; | ||
318 | |||
317 | /* ladis: this is my card. does any other types exist? */ | 319 | /* ladis: this is my card. does any other types exist? */ |
318 | static struct isapnp_device_id id_table[] __devinitdata = { | 320 | static struct isapnp_device_id id_table[] __devinitdata = { |
319 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 321 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, |
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index b0ccf7cb5952..6290553d24be 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/uaccess.h> /* copy to/from user */ | 22 | #include <asm/uaccess.h> /* copy to/from user */ |
23 | #include <linux/videodev2.h> /* kernel radio structs */ | 23 | #include <linux/videodev2.h> /* kernel radio structs */ |
24 | #include <media/v4l2-common.h> | 24 | #include <media/v4l2-common.h> |
25 | #include <media/v4l2-ioctl.h> | ||
25 | #include <linux/mutex.h> | 26 | #include <linux/mutex.h> |
26 | 27 | ||
27 | static struct mutex lock; | 28 | static struct mutex lock; |
@@ -410,12 +411,7 @@ static const struct file_operations fmr2_fops = { | |||
410 | .llseek = no_llseek, | 411 | .llseek = no_llseek, |
411 | }; | 412 | }; |
412 | 413 | ||
413 | static struct video_device fmr2_radio= | 414 | static const struct v4l2_ioctl_ops fmr2_ioctl_ops = { |
414 | { | ||
415 | .owner = THIS_MODULE, | ||
416 | .name = "SF16FMR2 radio", | ||
417 | . type = VID_TYPE_TUNER, | ||
418 | .fops = &fmr2_fops, | ||
419 | .vidioc_querycap = vidioc_querycap, | 415 | .vidioc_querycap = vidioc_querycap, |
420 | .vidioc_g_tuner = vidioc_g_tuner, | 416 | .vidioc_g_tuner = vidioc_g_tuner, |
421 | .vidioc_s_tuner = vidioc_s_tuner, | 417 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -430,6 +426,12 @@ static struct video_device fmr2_radio= | |||
430 | .vidioc_s_ctrl = vidioc_s_ctrl, | 426 | .vidioc_s_ctrl = vidioc_s_ctrl, |
431 | }; | 427 | }; |
432 | 428 | ||
429 | static struct video_device fmr2_radio = { | ||
430 | .name = "SF16FMR2 radio", | ||
431 | .fops = &fmr2_fops, | ||
432 | .ioctl_ops = &fmr2_ioctl_ops, | ||
433 | }; | ||
434 | |||
433 | static int __init fmr2_init(void) | 435 | static int __init fmr2_init(void) |
434 | { | 436 | { |
435 | fmr2_unit.port = io; | 437 | fmr2_unit.port = io; |
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index dc93a882b385..a4984ff87c9c 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -133,6 +133,7 @@ | |||
133 | #include <linux/videodev2.h> | 133 | #include <linux/videodev2.h> |
134 | #include <linux/mutex.h> | 134 | #include <linux/mutex.h> |
135 | #include <media/v4l2-common.h> | 135 | #include <media/v4l2-common.h> |
136 | #include <media/v4l2-ioctl.h> | ||
136 | #include <media/rds.h> | 137 | #include <media/rds.h> |
137 | #include <asm/unaligned.h> | 138 | #include <asm/unaligned.h> |
138 | 139 | ||
@@ -1585,15 +1586,7 @@ done: | |||
1585 | return retval; | 1586 | return retval; |
1586 | } | 1587 | } |
1587 | 1588 | ||
1588 | 1589 | static const struct v4l2_ioctl_ops si470x_ioctl_ops = { | |
1589 | /* | ||
1590 | * si470x_viddev_tamples - video device interface | ||
1591 | */ | ||
1592 | static struct video_device si470x_viddev_template = { | ||
1593 | .fops = &si470x_fops, | ||
1594 | .name = DRIVER_NAME, | ||
1595 | .type = VID_TYPE_TUNER, | ||
1596 | .release = video_device_release, | ||
1597 | .vidioc_querycap = si470x_vidioc_querycap, | 1590 | .vidioc_querycap = si470x_vidioc_querycap, |
1598 | .vidioc_g_input = si470x_vidioc_g_input, | 1591 | .vidioc_g_input = si470x_vidioc_g_input, |
1599 | .vidioc_s_input = si470x_vidioc_s_input, | 1592 | .vidioc_s_input = si470x_vidioc_s_input, |
@@ -1607,7 +1600,16 @@ static struct video_device si470x_viddev_template = { | |||
1607 | .vidioc_g_frequency = si470x_vidioc_g_frequency, | 1600 | .vidioc_g_frequency = si470x_vidioc_g_frequency, |
1608 | .vidioc_s_frequency = si470x_vidioc_s_frequency, | 1601 | .vidioc_s_frequency = si470x_vidioc_s_frequency, |
1609 | .vidioc_s_hw_freq_seek = si470x_vidioc_s_hw_freq_seek, | 1602 | .vidioc_s_hw_freq_seek = si470x_vidioc_s_hw_freq_seek, |
1610 | .owner = THIS_MODULE, | 1603 | }; |
1604 | |||
1605 | /* | ||
1606 | * si470x_viddev_tamples - video device interface | ||
1607 | */ | ||
1608 | static struct video_device si470x_viddev_template = { | ||
1609 | .fops = &si470x_fops, | ||
1610 | .ioctl_ops = &si470x_ioctl_ops, | ||
1611 | .name = DRIVER_NAME, | ||
1612 | .release = video_device_release, | ||
1611 | }; | 1613 | }; |
1612 | 1614 | ||
1613 | 1615 | ||
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index acc32080e9bd..cefa44fc5aed 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/uaccess.h> /* copy to/from user */ | 32 | #include <asm/uaccess.h> /* copy to/from user */ |
33 | #include <linux/videodev2.h> /* kernel radio structs */ | 33 | #include <linux/videodev2.h> /* kernel radio structs */ |
34 | #include <media/v4l2-common.h> | 34 | #include <media/v4l2-common.h> |
35 | #include <media/v4l2-ioctl.h> | ||
35 | #include <linux/spinlock.h> | 36 | #include <linux/spinlock.h> |
36 | 37 | ||
37 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 38 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
@@ -366,12 +367,7 @@ static const struct file_operations terratec_fops = { | |||
366 | .llseek = no_llseek, | 367 | .llseek = no_llseek, |
367 | }; | 368 | }; |
368 | 369 | ||
369 | static struct video_device terratec_radio= | 370 | static const struct v4l2_ioctl_ops terratec_ioctl_ops = { |
370 | { | ||
371 | .owner = THIS_MODULE, | ||
372 | .name = "TerraTec ActiveRadio", | ||
373 | .type = VID_TYPE_TUNER, | ||
374 | .fops = &terratec_fops, | ||
375 | .vidioc_querycap = vidioc_querycap, | 371 | .vidioc_querycap = vidioc_querycap, |
376 | .vidioc_g_tuner = vidioc_g_tuner, | 372 | .vidioc_g_tuner = vidioc_g_tuner, |
377 | .vidioc_s_tuner = vidioc_s_tuner, | 373 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -386,6 +382,12 @@ static struct video_device terratec_radio= | |||
386 | .vidioc_s_input = vidioc_s_input, | 382 | .vidioc_s_input = vidioc_s_input, |
387 | }; | 383 | }; |
388 | 384 | ||
385 | static struct video_device terratec_radio = { | ||
386 | .name = "TerraTec ActiveRadio", | ||
387 | .fops = &terratec_fops, | ||
388 | .ioctl_ops = &terratec_ioctl_ops, | ||
389 | }; | ||
390 | |||
389 | static int __init terratec_init(void) | 391 | static int __init terratec_init(void) |
390 | { | 392 | { |
391 | if(io==-1) | 393 | if(io==-1) |
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index 4ebdfbadeb9c..d70172d23edb 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
24 | #include <linux/videodev2.h> | 24 | #include <linux/videodev2.h> |
25 | #include <media/v4l2-common.h> | 25 | #include <media/v4l2-common.h> |
26 | #include <media/v4l2-ioctl.h> | ||
26 | 27 | ||
27 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 28 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
28 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) | 29 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) |
@@ -346,12 +347,7 @@ static const struct file_operations trust_fops = { | |||
346 | .llseek = no_llseek, | 347 | .llseek = no_llseek, |
347 | }; | 348 | }; |
348 | 349 | ||
349 | static struct video_device trust_radio= | 350 | static const struct v4l2_ioctl_ops trust_ioctl_ops = { |
350 | { | ||
351 | .owner = THIS_MODULE, | ||
352 | .name = "Trust FM Radio", | ||
353 | .type = VID_TYPE_TUNER, | ||
354 | .fops = &trust_fops, | ||
355 | .vidioc_querycap = vidioc_querycap, | 351 | .vidioc_querycap = vidioc_querycap, |
356 | .vidioc_g_tuner = vidioc_g_tuner, | 352 | .vidioc_g_tuner = vidioc_g_tuner, |
357 | .vidioc_s_tuner = vidioc_s_tuner, | 353 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -366,6 +362,12 @@ static struct video_device trust_radio= | |||
366 | .vidioc_s_input = vidioc_s_input, | 362 | .vidioc_s_input = vidioc_s_input, |
367 | }; | 363 | }; |
368 | 364 | ||
365 | static struct video_device trust_radio = { | ||
366 | .name = "Trust FM Radio", | ||
367 | .fops = &trust_fops, | ||
368 | .ioctl_ops = &trust_ioctl_ops, | ||
369 | }; | ||
370 | |||
369 | static int __init trust_init(void) | 371 | static int __init trust_init(void) |
370 | { | 372 | { |
371 | if(io == -1) { | 373 | if(io == -1) { |
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index 18f2abd7e255..f8d62cfea774 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <asm/uaccess.h> /* copy to/from user */ | 40 | #include <asm/uaccess.h> /* copy to/from user */ |
41 | #include <linux/videodev2.h> /* kernel radio structs */ | 41 | #include <linux/videodev2.h> /* kernel radio structs */ |
42 | #include <media/v4l2-common.h> | 42 | #include <media/v4l2-common.h> |
43 | #include <media/v4l2-ioctl.h> | ||
43 | 44 | ||
44 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 45 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
45 | #define RADIO_VERSION KERNEL_VERSION(0,1,1) | 46 | #define RADIO_VERSION KERNEL_VERSION(0,1,1) |
@@ -344,12 +345,7 @@ static const struct file_operations typhoon_fops = { | |||
344 | .llseek = no_llseek, | 345 | .llseek = no_llseek, |
345 | }; | 346 | }; |
346 | 347 | ||
347 | static struct video_device typhoon_radio = | 348 | static const struct v4l2_ioctl_ops typhoon_ioctl_ops = { |
348 | { | ||
349 | .owner = THIS_MODULE, | ||
350 | .name = "Typhoon Radio", | ||
351 | .type = VID_TYPE_TUNER, | ||
352 | .fops = &typhoon_fops, | ||
353 | .vidioc_querycap = vidioc_querycap, | 349 | .vidioc_querycap = vidioc_querycap, |
354 | .vidioc_g_tuner = vidioc_g_tuner, | 350 | .vidioc_g_tuner = vidioc_g_tuner, |
355 | .vidioc_s_tuner = vidioc_s_tuner, | 351 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -364,6 +360,12 @@ static struct video_device typhoon_radio = | |||
364 | .vidioc_s_ctrl = vidioc_s_ctrl, | 360 | .vidioc_s_ctrl = vidioc_s_ctrl, |
365 | }; | 361 | }; |
366 | 362 | ||
363 | static struct video_device typhoon_radio = { | ||
364 | .name = "Typhoon Radio", | ||
365 | .fops = &typhoon_fops, | ||
366 | .ioctl_ops = &typhoon_ioctl_ops, | ||
367 | }; | ||
368 | |||
367 | #ifdef CONFIG_RADIO_TYPHOON_PROC_FS | 369 | #ifdef CONFIG_RADIO_TYPHOON_PROC_FS |
368 | 370 | ||
369 | static int typhoon_proc_show(struct seq_file *m, void *v) | 371 | static int typhoon_proc_show(struct seq_file *m, void *v) |
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 43773c56c62f..9f17a332fa11 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/uaccess.h> /* copy to/from user */ | 37 | #include <asm/uaccess.h> /* copy to/from user */ |
38 | #include <linux/videodev2.h> /* kernel radio structs */ | 38 | #include <linux/videodev2.h> /* kernel radio structs */ |
39 | #include <media/v4l2-common.h> | 39 | #include <media/v4l2-common.h> |
40 | #include <media/v4l2-ioctl.h> | ||
40 | 41 | ||
41 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | 42 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ |
42 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) | 43 | #define RADIO_VERSION KERNEL_VERSION(0,0,2) |
@@ -407,12 +408,7 @@ static const struct file_operations zoltrix_fops = | |||
407 | .llseek = no_llseek, | 408 | .llseek = no_llseek, |
408 | }; | 409 | }; |
409 | 410 | ||
410 | static struct video_device zoltrix_radio = | 411 | static const struct v4l2_ioctl_ops zoltrix_ioctl_ops = { |
411 | { | ||
412 | .owner = THIS_MODULE, | ||
413 | .name = "Zoltrix Radio Plus", | ||
414 | .type = VID_TYPE_TUNER, | ||
415 | .fops = &zoltrix_fops, | ||
416 | .vidioc_querycap = vidioc_querycap, | 412 | .vidioc_querycap = vidioc_querycap, |
417 | .vidioc_g_tuner = vidioc_g_tuner, | 413 | .vidioc_g_tuner = vidioc_g_tuner, |
418 | .vidioc_s_tuner = vidioc_s_tuner, | 414 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -427,6 +423,12 @@ static struct video_device zoltrix_radio = | |||
427 | .vidioc_s_ctrl = vidioc_s_ctrl, | 423 | .vidioc_s_ctrl = vidioc_s_ctrl, |
428 | }; | 424 | }; |
429 | 425 | ||
426 | static struct video_device zoltrix_radio = { | ||
427 | .name = "Zoltrix Radio Plus", | ||
428 | .fops = &zoltrix_fops, | ||
429 | .ioctl_ops = &zoltrix_ioctl_ops, | ||
430 | }; | ||
431 | |||
430 | static int __init zoltrix_init(void) | 432 | static int __init zoltrix_init(void) |
431 | { | 433 | { |
432 | if (io == -1) { | 434 | if (io == -1) { |