[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>
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
#include <linux/delay.h> /* udelay, msleep */
|
||||
#include <linux/videodev2.h> /* kernel radio structs */
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/version.h> /* for KERNEL_VERSION MACRO */
|
||||
#include <linux/io.h> /* outb, outb_p */
|
||||
#include <media/v4l2-device.h>
|
||||
#include <media/v4l2-ioctl.h>
|
||||
@@ -43,6 +42,7 @@
|
||||
MODULE_AUTHOR("C.van Schaik");
|
||||
MODULE_DESCRIPTION("A driver for the Zoltrix Radio Plus.");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION("0.0.3");
|
||||
|
||||
#ifndef CONFIG_RADIO_ZOLTRIX_PORT
|
||||
#define CONFIG_RADIO_ZOLTRIX_PORT -1
|
||||
@@ -55,8 +55,6 @@ module_param(io, int, 0);
|
||||
MODULE_PARM_DESC(io, "I/O address of the Zoltrix Radio Plus (0x20c or 0x30c)");
|
||||
module_param(radio_nr, int, 0);
|
||||
|
||||
#define RADIO_VERSION KERNEL_VERSION(0, 0, 2)
|
||||
|
||||
struct zoltrix {
|
||||
struct v4l2_device v4l2_dev;
|
||||
struct video_device vdev;
|
||||
@@ -228,7 +226,6 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
strlcpy(v->driver, "radio-zoltrix", sizeof(v->driver));
|
||||
strlcpy(v->card, "Zoltrix Radio", sizeof(v->card));
|
||||
strlcpy(v->bus_info, "ISA", sizeof(v->bus_info));
|
||||
v->version = RADIO_VERSION;
|
||||
v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user