[media] gspca: remove g_chip_ident
Remove g_chip_ident and replace it with 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:

committed by
Mauro Carvalho Chehab

parent
23898919c4
commit
b1c85cc049
@@ -93,7 +93,6 @@
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/input.h>
|
||||
#include <media/v4l2-chip-ident.h>
|
||||
#include "gspca.h"
|
||||
/* Include pac common sof detection functions */
|
||||
#include "pac_common.h"
|
||||
@@ -849,8 +848,7 @@ static int sd_dbg_s_register(struct gspca_dev *gspca_dev,
|
||||
* reg->reg: bit0..15: reserved for register index (wIndex is 16bit
|
||||
* long on the USB bus)
|
||||
*/
|
||||
if (reg->match.type == V4L2_CHIP_MATCH_HOST &&
|
||||
reg->match.addr == 0 &&
|
||||
if (reg->match.addr == 0 &&
|
||||
(reg->reg < 0x000000ff) &&
|
||||
(reg->val <= 0x000000ff)
|
||||
) {
|
||||
@@ -871,20 +869,6 @@ static int sd_dbg_s_register(struct gspca_dev *gspca_dev,
|
||||
}
|
||||
return gspca_dev->usb_err;
|
||||
}
|
||||
|
||||
static int sd_chip_ident(struct gspca_dev *gspca_dev,
|
||||
struct v4l2_dbg_chip_ident *chip)
|
||||
{
|
||||
int ret = -EINVAL;
|
||||
|
||||
if (chip->match.type == V4L2_CHIP_MATCH_HOST &&
|
||||
chip->match.addr == 0) {
|
||||
chip->revision = 0;
|
||||
chip->ident = V4L2_IDENT_UNKNOWN;
|
||||
ret = 0;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_INPUT)
|
||||
@@ -931,7 +915,6 @@ static const struct sd_desc sd_desc = {
|
||||
.dq_callback = do_autogain,
|
||||
#ifdef CONFIG_VIDEO_ADV_DEBUG
|
||||
.set_register = sd_dbg_s_register,
|
||||
.get_chip_ident = sd_chip_ident,
|
||||
#endif
|
||||
#if IS_ENABLED(CONFIG_INPUT)
|
||||
.int_pkt_scan = sd_int_pkt_scan,
|
||||
|
Reference in New Issue
Block a user