Commit 0fda5d44 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

V4L/DVB (13551): v4l: Remove video_device::num usage from device drivers

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 38c7c036
...@@ -215,8 +215,8 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision) ...@@ -215,8 +215,8 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision)
memcpy(&usbvision->i2c_adap, &i2c_adap_template, memcpy(&usbvision->i2c_adap, &i2c_adap_template,
sizeof(struct i2c_adapter)); sizeof(struct i2c_adapter));
sprintf(usbvision->i2c_adap.name + strlen(usbvision->i2c_adap.name), sprintf(usbvision->i2c_adap.name, "%s-%d-%s", i2c_adap_template.name,
" #%d", usbvision->vdev->num); usbvision->dev->bus->busnum, usbvision->dev->devpath);
PDEBUG(DBG_I2C,"Adaptername: %s", usbvision->i2c_adap.name); PDEBUG(DBG_I2C,"Adaptername: %s", usbvision->i2c_adap.name);
usbvision->i2c_adap.dev.parent = &usbvision->dev->dev; usbvision->i2c_adap.dev.parent = &usbvision->dev->dev;
......
...@@ -1373,9 +1373,6 @@ static int __init vivi_create_instance(int inst) ...@@ -1373,9 +1373,6 @@ static int __init vivi_create_instance(int inst)
/* Now that everything is fine, let's add it to device list */ /* Now that everything is fine, let's add it to device list */
list_add_tail(&dev->vivi_devlist, &vivi_devlist); list_add_tail(&dev->vivi_devlist, &vivi_devlist);
snprintf(vfd->name, sizeof(vfd->name), "%s (%i)",
vivi_template.name, vfd->num);
if (video_nr >= 0) if (video_nr >= 0)
video_nr++; video_nr++;
......
...@@ -2877,8 +2877,7 @@ static long w9968cf_v4l_ioctl(struct file *filp, ...@@ -2877,8 +2877,7 @@ static long w9968cf_v4l_ioctl(struct file *filp,
.minwidth = cam->minwidth, .minwidth = cam->minwidth,
.minheight = cam->minheight, .minheight = cam->minheight,
}; };
sprintf(cap.name, "W996[87]CF USB Camera #%d", sprintf(cap.name, "W996[87]CF USB Camera");
cam->v4ldev->num);
cap.maxwidth = (cam->upscaling && w9968cf_vpp) cap.maxwidth = (cam->upscaling && w9968cf_vpp)
? max((u16)W9968CF_MAX_WIDTH, cam->maxwidth) ? max((u16)W9968CF_MAX_WIDTH, cam->maxwidth)
: cam->maxwidth; : cam->maxwidth;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment