mirror of https://gitee.com/openkylin/linux.git
[media] radio: remove g_chip_ident op
This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
4b7be2bbe0
commit
5f7105755f
|
@ -25,7 +25,6 @@
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <media/v4l2-device.h>
|
#include <media/v4l2-device.h>
|
||||||
#include <media/v4l2-chip-ident.h>
|
|
||||||
|
|
||||||
#define DRIVER_NAME "saa7706h"
|
#define DRIVER_NAME "saa7706h"
|
||||||
|
|
||||||
|
@ -349,16 +348,7 @@ static int saa7706h_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int saa7706h_g_chip_ident(struct v4l2_subdev *sd,
|
|
||||||
struct v4l2_dbg_chip_ident *chip)
|
|
||||||
{
|
|
||||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
|
||||||
|
|
||||||
return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_SAA7706H, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct v4l2_subdev_core_ops saa7706h_core_ops = {
|
static const struct v4l2_subdev_core_ops saa7706h_core_ops = {
|
||||||
.g_chip_ident = saa7706h_g_chip_ident,
|
|
||||||
.queryctrl = saa7706h_queryctrl,
|
.queryctrl = saa7706h_queryctrl,
|
||||||
.g_ctrl = saa7706h_g_ctrl,
|
.g_ctrl = saa7706h_g_ctrl,
|
||||||
.s_ctrl = saa7706h_s_ctrl,
|
.s_ctrl = saa7706h_s_ctrl,
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <media/v4l2-ioctl.h>
|
#include <media/v4l2-ioctl.h>
|
||||||
#include <media/v4l2-device.h>
|
#include <media/v4l2-device.h>
|
||||||
#include <media/v4l2-chip-ident.h>
|
|
||||||
|
|
||||||
#define DRIVER_NAME "tef6862"
|
#define DRIVER_NAME "tef6862"
|
||||||
|
|
||||||
|
@ -136,14 +135,6 @@ static int tef6862_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tef6862_g_chip_ident(struct v4l2_subdev *sd,
|
|
||||||
struct v4l2_dbg_chip_ident *chip)
|
|
||||||
{
|
|
||||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
|
||||||
|
|
||||||
return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_TEF6862, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct v4l2_subdev_tuner_ops tef6862_tuner_ops = {
|
static const struct v4l2_subdev_tuner_ops tef6862_tuner_ops = {
|
||||||
.g_tuner = tef6862_g_tuner,
|
.g_tuner = tef6862_g_tuner,
|
||||||
.s_tuner = tef6862_s_tuner,
|
.s_tuner = tef6862_s_tuner,
|
||||||
|
@ -151,12 +142,7 @@ static const struct v4l2_subdev_tuner_ops tef6862_tuner_ops = {
|
||||||
.g_frequency = tef6862_g_frequency,
|
.g_frequency = tef6862_g_frequency,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct v4l2_subdev_core_ops tef6862_core_ops = {
|
|
||||||
.g_chip_ident = tef6862_g_chip_ident,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct v4l2_subdev_ops tef6862_ops = {
|
static const struct v4l2_subdev_ops tef6862_ops = {
|
||||||
.core = &tef6862_core_ops,
|
|
||||||
.tuner = &tef6862_tuner_ops,
|
.tuner = &tef6862_tuner_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue