[media] media/i2c: 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> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

父節點
6be89daa03
當前提交
e12771100c
@@ -27,7 +27,6 @@
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/videodev2.h>
|
||||
#include <media/v4l2-device.h>
|
||||
#include <media/v4l2-chip-ident.h>
|
||||
#include <media/v4l2-ctrls.h>
|
||||
|
||||
MODULE_DESCRIPTION("vpx3220a/vpx3216b/vpx3214c video decoder driver");
|
||||
@@ -49,7 +48,6 @@ struct vpx3220 {
|
||||
unsigned char reg[255];
|
||||
|
||||
v4l2_std_id norm;
|
||||
int ident;
|
||||
int input;
|
||||
int enable;
|
||||
};
|
||||
@@ -442,14 +440,6 @@ static int vpx3220_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int vpx3220_g_chip_ident(struct v4l2_subdev *sd, struct v4l2_dbg_chip_ident *chip)
|
||||
{
|
||||
struct vpx3220 *decoder = to_vpx3220(sd);
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
return v4l2_chip_ident_i2c_client(client, chip, decoder->ident, 0);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
static const struct v4l2_ctrl_ops vpx3220_ctrl_ops = {
|
||||
@@ -457,7 +447,6 @@ static const struct v4l2_ctrl_ops vpx3220_ctrl_ops = {
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_core_ops vpx3220_core_ops = {
|
||||
.g_chip_ident = vpx3220_g_chip_ident,
|
||||
.init = vpx3220_init,
|
||||
.g_ext_ctrls = v4l2_subdev_g_ext_ctrls,
|
||||
.try_ext_ctrls = v4l2_subdev_try_ext_ctrls,
|
||||
@@ -528,7 +517,6 @@ static int vpx3220_probe(struct i2c_client *client,
|
||||
ver = i2c_smbus_read_byte_data(client, 0x00);
|
||||
pn = (i2c_smbus_read_byte_data(client, 0x02) << 8) +
|
||||
i2c_smbus_read_byte_data(client, 0x01);
|
||||
decoder->ident = V4L2_IDENT_VPX3220A;
|
||||
if (ver == 0xec) {
|
||||
switch (pn) {
|
||||
case 0x4680:
|
||||
@@ -536,11 +524,9 @@ static int vpx3220_probe(struct i2c_client *client,
|
||||
break;
|
||||
case 0x4260:
|
||||
name = "vpx3216b";
|
||||
decoder->ident = V4L2_IDENT_VPX3216B;
|
||||
break;
|
||||
case 0x4280:
|
||||
name = "vpx3214c";
|
||||
decoder->ident = V4L2_IDENT_VPX3214C;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user