[media] v4l2: remove obsolete v4l2_chip_match_host()
This function is no longer needed since it is now the responsibility of the v4l2 core to check if the DBG_G/S_REGISTER and DBG_G_CHIP_INFO ioctls are called for the bridge driver or not. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tento commit je obsažen v:

odevzdal
Mauro Carvalho Chehab

rodič
facd23664f
revize
6ec19898ed
@@ -467,8 +467,6 @@ static int vidioc_g_register(struct file *file, void *priv,
|
||||
struct usb_usbvision *usbvision = video_drvdata(file);
|
||||
int err_code;
|
||||
|
||||
if (!v4l2_chip_match_host(®->match))
|
||||
return -EINVAL;
|
||||
/* NT100x has a 8-bit register space */
|
||||
err_code = usbvision_read_reg(usbvision, reg->reg&0xff);
|
||||
if (err_code < 0) {
|
||||
@@ -488,8 +486,6 @@ static int vidioc_s_register(struct file *file, void *priv,
|
||||
struct usb_usbvision *usbvision = video_drvdata(file);
|
||||
int err_code;
|
||||
|
||||
if (!v4l2_chip_match_host(®->match))
|
||||
return -EINVAL;
|
||||
/* NT100x has a 8-bit register space */
|
||||
err_code = usbvision_write_reg(usbvision, reg->reg & 0xff, reg->val);
|
||||
if (err_code < 0) {
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele