diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-25 09:15:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:16 -0400 |
commit | 29834c1ac7589c72996c5d02349d63fd397ef131 (patch) | |
tree | 60d5bfadc2bc4f88938640a6d11ff0983b5f5fd4 /drivers/media/radio/radio-trust.c | |
parent | 64dc3c1a906467d90c24913b0b38dd13d9378f4f (diff) |
[media] radio: Use the subsystem version control for VIDIOC_QUERYCAP
Just like the video drivers, the right thing to do is to use
the per-subsystem version control.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-trust.c')
-rw-r--r-- | drivers/media/radio/radio-trust.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index 22fa9cc28abe..b3f45a019d82 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/ioport.h> | 21 | #include <linux/ioport.h> |
22 | #include <linux/version.h> /* for KERNEL_VERSION MACRO */ | ||
23 | #include <linux/videodev2.h> | 22 | #include <linux/videodev2.h> |
24 | #include <linux/io.h> | 23 | #include <linux/io.h> |
25 | #include <media/v4l2-device.h> | 24 | #include <media/v4l2-device.h> |
@@ -28,6 +27,7 @@ | |||
28 | MODULE_AUTHOR("Eric Lammerts, Russell Kroll, Quay Lu, Donald Song, Jason Lewis, Scott McGrath, William McGrath"); | 27 | MODULE_AUTHOR("Eric Lammerts, Russell Kroll, Quay Lu, Donald Song, Jason Lewis, Scott McGrath, William McGrath"); |
29 | MODULE_DESCRIPTION("A driver for the Trust FM Radio card."); | 28 | MODULE_DESCRIPTION("A driver for the Trust FM Radio card."); |
30 | MODULE_LICENSE("GPL"); | 29 | MODULE_LICENSE("GPL"); |
30 | MODULE_VERSION("0.0.3"); | ||
31 | 31 | ||
32 | /* acceptable ports: 0x350 (JP3 shorted), 0x358 (JP3 open) */ | 32 | /* acceptable ports: 0x350 (JP3 shorted), 0x358 (JP3 open) */ |
33 | 33 | ||
@@ -42,8 +42,6 @@ module_param(io, int, 0); | |||
42 | MODULE_PARM_DESC(io, "I/O address of the Trust FM Radio card (0x350 or 0x358)"); | 42 | MODULE_PARM_DESC(io, "I/O address of the Trust FM Radio card (0x350 or 0x358)"); |
43 | module_param(radio_nr, int, 0); | 43 | module_param(radio_nr, int, 0); |
44 | 44 | ||
45 | #define RADIO_VERSION KERNEL_VERSION(0, 0, 2) | ||
46 | |||
47 | struct trust { | 45 | struct trust { |
48 | struct v4l2_device v4l2_dev; | 46 | struct v4l2_device v4l2_dev; |
49 | struct video_device vdev; | 47 | struct video_device vdev; |
@@ -196,7 +194,6 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
196 | strlcpy(v->driver, "radio-trust", sizeof(v->driver)); | 194 | strlcpy(v->driver, "radio-trust", sizeof(v->driver)); |
197 | strlcpy(v->card, "Trust FM Radio", sizeof(v->card)); | 195 | strlcpy(v->card, "Trust FM Radio", sizeof(v->card)); |
198 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); | 196 | strlcpy(v->bus_info, "ISA", sizeof(v->bus_info)); |
199 | v->version = RADIO_VERSION; | ||
200 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; | 197 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; |
201 | return 0; | 198 | return 0; |
202 | } | 199 | } |