linux V4L FM驱动的问题
FM的驱动中定都定义了很多没有使用过的函数,还是static 的 ,而且函数名都有特殊要求,请问这是为什么呀。为什么要这样做。
下面是这些函数
static int __attribute__ ((unused)) vidioc_querycap(struct file *file, void *priv,
struct v4l2_capability *v)
{
}
static int __attribute__ ((unused)) vidioc_g_tuner(struct file *file, void *priv,
struct v4l2_tuner *v)
{
struct si4703_device *chip = video_get_drvdata(video_devdata(file));
}
static int __attribute__ ((unused)) vidioc_s_tuner(struct file *file, void *priv,
struct v4l2_tuner *v)
{
}
static int __attribute__ ((unused)) vidioc_s_frequency(struct file *file, void *priv,
struct v4l2_frequency *f)
{
return 0;
}
static int __attribute__ ((unused)) vidioc_g_frequency(struct file *file, void *priv,
struct v4l2_frequency *f)
{
}
static int __attribute__ ((unused)) vidioc_queryctrl(struct file *file, void *priv,
struct v4l2_queryctrl *qc)
{
}
static int __attribute__ ((unused)) vidioc_g_ctrl(struct file *file, void *priv,
struct v4l2_control *ctrl)
{
struct si4703_device *chip = video_get_drvdata(video_devdata(file));
}
static int __attribute__ ((unused)) vidioc_s_ctrl(struct file *file, void *priv,
struct v4l2_control *ctrl)
{
}
static int __attribute__ ((unused)) vidioc_g_audio(struct file *file, void *priv,
struct v4l2_audio *a)
{
}
static int __attribute__ ((unused)) vidioc_g_input(struct file *filp, void *priv, unsigned int *i)
{
}
static int __attribute__ ((unused)) vidioc_s_input(struct file *filp, void *priv, unsigned int i)
{
}
static int __attribute__ ((unused)) vidioc_s_audio(struct file *file, void *priv,
struct v4l2_audio *a)
{
}