aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2009-11-27 11:57:18 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:17:55 -0500
commit0fda5d4420fe1d6a19189386b6bc6532c97a7e0e (patch)
treef982dabe5e05325ba391efbc7860563a30cdabfe /drivers/media
parent38c7c036036c6260606a2a833aaad3794ca22499 (diff)
V4L/DVB (13551): v4l: Remove video_device::num usage from device drivers
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/usbvision/usbvision-i2c.c4
-rw-r--r--drivers/media/video/vivi.c3
-rw-r--r--drivers/media/video/w9968cf.c3
3 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c
index c19f51dba2ee..0613922997e0 100644
--- a/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/drivers/media/video/usbvision/usbvision-i2c.c
@@ -215,8 +215,8 @@ int usbvision_i2c_register(struct usb_usbvision *usbvision)
215 memcpy(&usbvision->i2c_adap, &i2c_adap_template, 215 memcpy(&usbvision->i2c_adap, &i2c_adap_template,
216 sizeof(struct i2c_adapter)); 216 sizeof(struct i2c_adapter));
217 217
218 sprintf(usbvision->i2c_adap.name + strlen(usbvision->i2c_adap.name), 218 sprintf(usbvision->i2c_adap.name, "%s-%d-%s", i2c_adap_template.name,
219 " #%d", usbvision->vdev->num); 219 usbvision->dev->bus->busnum, usbvision->dev->devpath);
220 PDEBUG(DBG_I2C,"Adaptername: %s", usbvision->i2c_adap.name); 220 PDEBUG(DBG_I2C,"Adaptername: %s", usbvision->i2c_adap.name);
221 usbvision->i2c_adap.dev.parent = &usbvision->dev->dev; 221 usbvision->i2c_adap.dev.parent = &usbvision->dev->dev;
222 222
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 48f5a628c065..93e0a258080d 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -1373,9 +1373,6 @@ static int __init vivi_create_instance(int inst)
1373 /* Now that everything is fine, let's add it to device list */ 1373 /* Now that everything is fine, let's add it to device list */
1374 list_add_tail(&dev->vivi_devlist, &vivi_devlist); 1374 list_add_tail(&dev->vivi_devlist, &vivi_devlist);
1375 1375
1376 snprintf(vfd->name, sizeof(vfd->name), "%s (%i)",
1377 vivi_template.name, vfd->num);
1378
1379 if (video_nr >= 0) 1376 if (video_nr >= 0)
1380 video_nr++; 1377 video_nr++;
1381 1378
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index 695ad2f46095..3af6d6b31865 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -2877,8 +2877,7 @@ static long w9968cf_v4l_ioctl(struct file *filp,
2877 .minwidth = cam->minwidth, 2877 .minwidth = cam->minwidth,
2878 .minheight = cam->minheight, 2878 .minheight = cam->minheight,
2879 }; 2879 };
2880 sprintf(cap.name, "W996[87]CF USB Camera #%d", 2880 sprintf(cap.name, "W996[87]CF USB Camera");
2881 cam->v4ldev->num);
2882 cap.maxwidth = (cam->upscaling && w9968cf_vpp) 2881 cap.maxwidth = (cam->upscaling && w9968cf_vpp)
2883 ? max((u16)W9968CF_MAX_WIDTH, cam->maxwidth) 2882 ? max((u16)W9968CF_MAX_WIDTH, cam->maxwidth)
2884 : cam->maxwidth; 2883 : cam->maxwidth;