aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-12-31 06:13:46 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:29 -0400
commit50e06dee958bdb81229cb42486f7fdc4917fa4da (patch)
tree9a5d02a24e5684c008137774a5ce0211a421c893
parentafd46291393e20736368e275a6f5f7c44dfe9540 (diff)
V4L/DVB (10333): gspca - main and many subdrivers: Remove the epaddr variable.
The transfer endpoint address is now automatically chosen. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/conex.c1
-rw-r--r--drivers/media/video/gspca/etoms.c1
-rw-r--r--drivers/media/video/gspca/finepix.c6
-rw-r--r--drivers/media/video/gspca/gspca.c17
-rw-r--r--drivers/media/video/gspca/gspca.h1
-rw-r--r--drivers/media/video/gspca/m5602/m5602_core.c1
-rw-r--r--drivers/media/video/gspca/mars.c1
-rw-r--r--drivers/media/video/gspca/ov519.c1
-rw-r--r--drivers/media/video/gspca/ov534.c1
-rw-r--r--drivers/media/video/gspca/pac207.c1
-rw-r--r--drivers/media/video/gspca/pac7311.c1
-rw-r--r--drivers/media/video/gspca/sonixb.c1
-rw-r--r--drivers/media/video/gspca/sonixj.c1
-rw-r--r--drivers/media/video/gspca/spca500.c1
-rw-r--r--drivers/media/video/gspca/spca501.c1
-rw-r--r--drivers/media/video/gspca/spca505.c1
-rw-r--r--drivers/media/video/gspca/spca506.c1
-rw-r--r--drivers/media/video/gspca/spca508.c1
-rw-r--r--drivers/media/video/gspca/spca561.c1
-rw-r--r--drivers/media/video/gspca/stk014.c4
-rw-r--r--drivers/media/video/gspca/stv06xx/stv06xx.c1
-rw-r--r--drivers/media/video/gspca/sunplus.c1
-rw-r--r--drivers/media/video/gspca/t613.c1
-rw-r--r--drivers/media/video/gspca/tv8532.c1
-rw-r--r--drivers/media/video/gspca/vc032x.c1
-rw-r--r--drivers/media/video/gspca/zc3xx.c1
26 files changed, 7 insertions, 43 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c
index 1753f5bb3544..a7088f60bcd0 100644
--- a/drivers/media/video/gspca/conex.c
+++ b/drivers/media/video/gspca/conex.c
@@ -815,7 +815,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
815 struct cam *cam; 815 struct cam *cam;
816 816
817 cam = &gspca_dev->cam; 817 cam = &gspca_dev->cam;
818 cam->epaddr = 0x01;
819 cam->cam_mode = vga_mode; 818 cam->cam_mode = vga_mode;
820 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 819 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
821 820
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index f3cd8ff5cc92..ca888ac969d0 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -658,7 +658,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
658 struct cam *cam; 658 struct cam *cam;
659 659
660 cam = &gspca_dev->cam; 660 cam = &gspca_dev->cam;
661 cam->epaddr = 1;
662 sd->sensor = id->driver_info; 661 sd->sensor = id->driver_info;
663 if (sd->sensor == SENSOR_PAS106) { 662 if (sd->sensor == SENSOR_PAS106) {
664 cam->cam_mode = sif_mode; 663 cam->cam_mode = sif_mode;
diff --git a/drivers/media/video/gspca/finepix.c b/drivers/media/video/gspca/finepix.c
index afc8b2dd307b..76c6e03cb6c9 100644
--- a/drivers/media/video/gspca/finepix.c
+++ b/drivers/media/video/gspca/finepix.c
@@ -259,7 +259,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
259 259
260 cam->cam_mode = fpix_mode; 260 cam->cam_mode = fpix_mode;
261 cam->nmodes = 1; 261 cam->nmodes = 1;
262 cam->epaddr = 0x01; /* todo: correct for all cams? */
263 cam->bulk_size = FPIX_MAX_TRANSFER; 262 cam->bulk_size = FPIX_MAX_TRANSFER;
264 263
265/* gspca_dev->nbalt = 1; * use bulk transfer */ 264/* gspca_dev->nbalt = 1; * use bulk transfer */
@@ -335,8 +334,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
335 /* Read the result of the command. Ignore the result, for it 334 /* Read the result of the command. Ignore the result, for it
336 * varies with the device. */ 335 * varies with the device. */
337 ret = usb_bulk_msg(gspca_dev->dev, 336 ret = usb_bulk_msg(gspca_dev->dev,
338 usb_rcvbulkpipe(gspca_dev->dev, 337 gspca_dev->urb[0]->pipe,
339 gspca_dev->cam.epaddr),
340 gspca_dev->usb_buf, FPIX_MAX_TRANSFER, &size_ret, 338 gspca_dev->usb_buf, FPIX_MAX_TRANSFER, &size_ret,
341 FPIX_TIMEOUT); 339 FPIX_TIMEOUT);
342 if (ret != 0) { 340 if (ret != 0) {
@@ -363,7 +361,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
363 } 361 }
364 362
365 /* Again, reset bulk in endpoint */ 363 /* Again, reset bulk in endpoint */
366 usb_clear_halt(gspca_dev->dev, gspca_dev->cam.epaddr); 364 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe);
367 365
368 /* Allocate a control URB */ 366 /* Allocate a control URB */
369 dev->control_urb = usb_alloc_urb(0, GFP_KERNEL); 367 dev->control_urb = usb_alloc_urb(0, GFP_KERNEL);
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 9b77ebbd875d..e13833b8ed67 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -439,22 +439,16 @@ static void destroy_urbs(struct gspca_dev *gspca_dev)
439 * look for an input transfer endpoint in an alternate setting 439 * look for an input transfer endpoint in an alternate setting
440 */ 440 */
441static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt, 441static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt,
442 __u8 epaddr,
443 __u8 xfer) 442 __u8 xfer)
444{ 443{
445 struct usb_host_endpoint *ep; 444 struct usb_host_endpoint *ep;
446 int i, attr; 445 int i, attr;
447 446
448 epaddr |= USB_DIR_IN;
449 for (i = 0; i < alt->desc.bNumEndpoints; i++) { 447 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
450 ep = &alt->endpoint[i]; 448 ep = &alt->endpoint[i];
451 if (ep->desc.bEndpointAddress == epaddr) { 449 attr = ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
452 attr = ep->desc.bmAttributes 450 if (attr == xfer)
453 & USB_ENDPOINT_XFERTYPE_MASK; 451 return ep;
454 if (attr == xfer)
455 return ep;
456 break;
457 }
458 } 452 }
459 return NULL; 453 return NULL;
460} 454}
@@ -480,7 +474,6 @@ static struct usb_host_endpoint *get_ep(struct gspca_dev *gspca_dev)
480 /* try isoc */ 474 /* try isoc */
481 while (--i > 0) { /* alt 0 is unusable */ 475 while (--i > 0) { /* alt 0 is unusable */
482 ep = alt_xfer(&intf->altsetting[i], 476 ep = alt_xfer(&intf->altsetting[i],
483 gspca_dev->cam.epaddr,
484 USB_ENDPOINT_XFER_ISOC); 477 USB_ENDPOINT_XFER_ISOC);
485 if (ep) 478 if (ep)
486 break; 479 break;
@@ -489,7 +482,6 @@ static struct usb_host_endpoint *get_ep(struct gspca_dev *gspca_dev)
489 /* if no isoc, try bulk */ 482 /* if no isoc, try bulk */
490 if (ep == NULL) { 483 if (ep == NULL) {
491 ep = alt_xfer(&intf->altsetting[0], 484 ep = alt_xfer(&intf->altsetting[0],
492 gspca_dev->cam.epaddr,
493 USB_ENDPOINT_XFER_BULK); 485 USB_ENDPOINT_XFER_BULK);
494 if (ep == NULL) { 486 if (ep == NULL) {
495 err("no transfer endpoint found"); 487 err("no transfer endpoint found");
@@ -618,8 +610,7 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
618 /* clear the bulk endpoint */ 610 /* clear the bulk endpoint */
619 if (gspca_dev->alt == 0) /* if bulk transfer */ 611 if (gspca_dev->alt == 0) /* if bulk transfer */
620 usb_clear_halt(gspca_dev->dev, 612 usb_clear_halt(gspca_dev->dev,
621 usb_rcvintpipe(gspca_dev->dev, 613 gspca_dev->urb[0]->pipe);
622 gspca_dev->cam.epaddr));
623 614
624 /* start the cam */ 615 /* start the cam */
625 ret = gspca_dev->sd_desc->start(gspca_dev); 616 ret = gspca_dev->sd_desc->start(gspca_dev);
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index c90af9cb1e07..e5c8eb709036 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -62,7 +62,6 @@ struct cam {
62 * - cannot be > MAX_NURBS 62 * - cannot be > MAX_NURBS
63 * - when 0 and bulk_size != 0 means 63 * - when 0 and bulk_size != 0 means
64 * 1 URB and submit done by subdriver */ 64 * 1 URB and submit done by subdriver */
65 __u8 epaddr;
66}; 65};
67 66
68struct gspca_dev; 67struct gspca_dev;
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c
index ed906fe31287..37a47db2903d 100644
--- a/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/drivers/media/video/gspca/m5602/m5602_core.c
@@ -332,7 +332,6 @@ static int m5602_configure(struct gspca_dev *gspca_dev,
332 int err; 332 int err;
333 333
334 cam = &gspca_dev->cam; 334 cam = &gspca_dev->cam;
335 cam->epaddr = M5602_ISOC_ENDPOINT_ADDR;
336 sd->desc = &sd_desc; 335 sd->desc = &sd_desc;
337 336
338 if (dump_bridge) 337 if (dump_bridge)
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c
index 3d2090e67a63..ba79afbf8b39 100644
--- a/drivers/media/video/gspca/mars.c
+++ b/drivers/media/video/gspca/mars.c
@@ -121,7 +121,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
121 struct cam *cam; 121 struct cam *cam;
122 122
123 cam = &gspca_dev->cam; 123 cam = &gspca_dev->cam;
124 cam->epaddr = 0x01;
125 cam->cam_mode = vga_mode; 124 cam->cam_mode = vga_mode;
126 cam->nmodes = ARRAY_SIZE(vga_mode); 125 cam->nmodes = ARRAY_SIZE(vga_mode);
127 sd->qindex = 1; /* set the quantization table */ 126 sd->qindex = 1; /* set the quantization table */
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c
index ee232956c812..ac9b4dc064d6 100644
--- a/drivers/media/video/gspca/ov519.c
+++ b/drivers/media/video/gspca/ov519.c
@@ -1360,7 +1360,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
1360 } 1360 }
1361 1361
1362 cam = &gspca_dev->cam; 1362 cam = &gspca_dev->cam;
1363 cam->epaddr = OV511_ENDPOINT_ADDRESS;
1364 if (!sd->sif) { 1363 if (!sd->sif) {
1365 cam->cam_mode = vga_mode; 1364 cam->cam_mode = vga_mode;
1366 cam->nmodes = ARRAY_SIZE(vga_mode); 1365 cam->nmodes = ARRAY_SIZE(vga_mode);
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index 3bf15e401693..01314e9995f0 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -379,7 +379,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
379 379
380 cam = &gspca_dev->cam; 380 cam = &gspca_dev->cam;
381 381
382 cam->epaddr = 0x01;
383 cam->cam_mode = vga_mode; 382 cam->cam_mode = vga_mode;
384 cam->nmodes = ARRAY_SIZE(vga_mode); 383 cam->nmodes = ARRAY_SIZE(vga_mode);
385 384
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c
index c90ac852bac0..546820f52c02 100644
--- a/drivers/media/video/gspca/pac207.c
+++ b/drivers/media/video/gspca/pac207.c
@@ -256,7 +256,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
256 " (vid/pid 0x%04X:0x%04X)", id->idVendor, id->idProduct); 256 " (vid/pid 0x%04X:0x%04X)", id->idVendor, id->idProduct);
257 257
258 cam = &gspca_dev->cam; 258 cam = &gspca_dev->cam;
259 cam->epaddr = 0x05;
260 cam->cam_mode = sif_mode; 259 cam->cam_mode = sif_mode;
261 cam->nmodes = ARRAY_SIZE(sif_mode); 260 cam->nmodes = ARRAY_SIZE(sif_mode);
262 sd->brightness = PAC207_BRIGHTNESS_DEFAULT; 261 sd->brightness = PAC207_BRIGHTNESS_DEFAULT;
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index a9c95cba710e..f34bbc5db501 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -498,7 +498,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
498 struct cam *cam; 498 struct cam *cam;
499 499
500 cam = &gspca_dev->cam; 500 cam = &gspca_dev->cam;
501 cam->epaddr = 0x05;
502 501
503 sd->sensor = id->driver_info; 502 sd->sensor = id->driver_info;
504 if (sd->sensor == SENSOR_PAC7302) { 503 if (sd->sensor == SENSOR_PAC7302) {
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index b3e4e0677b68..5ec361c779be 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -870,7 +870,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
870 gspca_dev->ctrl_dis = sensor_data[sd->sensor].ctrl_dis; 870 gspca_dev->ctrl_dis = sensor_data[sd->sensor].ctrl_dis;
871 871
872 cam = &gspca_dev->cam; 872 cam = &gspca_dev->cam;
873 cam->epaddr = 0x01;
874 if (!(sensor_data[sd->sensor].flags & F_SIF)) { 873 if (!(sensor_data[sd->sensor].flags & F_SIF)) {
875 cam->cam_mode = vga_mode; 874 cam->cam_mode = vga_mode;
876 cam->nmodes = ARRAY_SIZE(vga_mode); 875 cam->nmodes = ARRAY_SIZE(vga_mode);
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 3373b8d9d2a8..5c159d89bd82 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -1018,7 +1018,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
1018 struct cam *cam; 1018 struct cam *cam;
1019 1019
1020 cam = &gspca_dev->cam; 1020 cam = &gspca_dev->cam;
1021 cam->epaddr = 0x01;
1022 cam->cam_mode = vga_mode; 1021 cam->cam_mode = vga_mode;
1023 cam->nmodes = ARRAY_SIZE(vga_mode); 1022 cam->nmodes = ARRAY_SIZE(vga_mode);
1024 1023
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c
index 942f04cd44dd..94ed469a3ada 100644
--- a/drivers/media/video/gspca/spca500.c
+++ b/drivers/media/video/gspca/spca500.c
@@ -629,7 +629,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
629 struct cam *cam; 629 struct cam *cam;
630 630
631 cam = &gspca_dev->cam; 631 cam = &gspca_dev->cam;
632 cam->epaddr = 0x01;
633 sd->subtype = id->driver_info; 632 sd->subtype = id->driver_info;
634 if (sd->subtype != LogitechClickSmart310) { 633 if (sd->subtype != LogitechClickSmart310) {
635 cam->cam_mode = vga_mode; 634 cam->cam_mode = vga_mode;
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c
index 82e3e3e2ada1..766da90e6eb7 100644
--- a/drivers/media/video/gspca/spca501.c
+++ b/drivers/media/video/gspca/spca501.c
@@ -1934,7 +1934,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
1934 struct cam *cam; 1934 struct cam *cam;
1935 1935
1936 cam = &gspca_dev->cam; 1936 cam = &gspca_dev->cam;
1937 cam->epaddr = 0x01;
1938 cam->cam_mode = vga_mode; 1937 cam->cam_mode = vga_mode;
1939 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 1938 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
1940 sd->subtype = id->driver_info; 1939 sd->subtype = id->driver_info;
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c
index 2a33a29010ee..90d555361ae7 100644
--- a/drivers/media/video/gspca/spca505.c
+++ b/drivers/media/video/gspca/spca505.c
@@ -636,7 +636,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
636 struct cam *cam; 636 struct cam *cam;
637 637
638 cam = &gspca_dev->cam; 638 cam = &gspca_dev->cam;
639 cam->epaddr = 0x01;
640 cam->cam_mode = vga_mode; 639 cam->cam_mode = vga_mode;
641 sd->subtype = id->driver_info; 640 sd->subtype = id->driver_info;
642 if (sd->subtype != IntelPCCameraPro) 641 if (sd->subtype != IntelPCCameraPro)
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c
index 96e2512e0621..99fa3fc1cb62 100644
--- a/drivers/media/video/gspca/spca506.c
+++ b/drivers/media/video/gspca/spca506.c
@@ -303,7 +303,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
303 struct cam *cam; 303 struct cam *cam;
304 304
305 cam = &gspca_dev->cam; 305 cam = &gspca_dev->cam;
306 cam->epaddr = 0x01;
307 cam->cam_mode = vga_mode; 306 cam->cam_mode = vga_mode;
308 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 307 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
309 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value; 308 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value;
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c
index be5d740a315d..f5c045967379 100644
--- a/drivers/media/video/gspca/spca508.c
+++ b/drivers/media/video/gspca/spca508.c
@@ -1487,7 +1487,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
1487 PDEBUG(D_PROBE, "Window 1 average luminance: %d", data1); 1487 PDEBUG(D_PROBE, "Window 1 average luminance: %d", data1);
1488 1488
1489 cam = &gspca_dev->cam; 1489 cam = &gspca_dev->cam;
1490 cam->epaddr = 0x01;
1491 cam->cam_mode = sif_mode; 1490 cam->cam_mode = sif_mode;
1492 cam->nmodes = ARRAY_SIZE(sif_mode); 1491 cam->nmodes = ARRAY_SIZE(sif_mode);
1493 1492
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c
index 3c9288019e96..d64e7d64d053 100644
--- a/drivers/media/video/gspca/spca561.c
+++ b/drivers/media/video/gspca/spca561.c
@@ -541,7 +541,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
541 } 541 }
542 542
543 cam = &gspca_dev->cam; 543 cam = &gspca_dev->cam;
544 cam->epaddr = 0x01;
545 gspca_dev->nbalt = 7 + 1; /* choose alternate 7 first */ 544 gspca_dev->nbalt = 7 + 1; /* choose alternate 7 first */
546 545
547 sd->chip_revision = id->driver_info; 546 sd->chip_revision = id->driver_info;
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c
index 60de9af87fbb..cd1fbff0c94c 100644
--- a/drivers/media/video/gspca/stk014.c
+++ b/drivers/media/video/gspca/stk014.c
@@ -180,7 +180,7 @@ static int rcv_val(struct gspca_dev *gspca_dev,
180 reg_w(gspca_dev, 0x63b, 0); 180 reg_w(gspca_dev, 0x63b, 0);
181 reg_w(gspca_dev, 0x630, 5); 181 reg_w(gspca_dev, 0x630, 5);
182 ret = usb_bulk_msg(dev, 182 ret = usb_bulk_msg(dev,
183 usb_rcvbulkpipe(dev, 5), 183 usb_rcvbulkpipe(dev, 0x05),
184 gspca_dev->usb_buf, 184 gspca_dev->usb_buf,
185 4, /* length */ 185 4, /* length */
186 &alen, 186 &alen,
@@ -294,9 +294,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
294 const struct usb_device_id *id) 294 const struct usb_device_id *id)
295{ 295{
296 struct sd *sd = (struct sd *) gspca_dev; 296 struct sd *sd = (struct sd *) gspca_dev;
297 struct cam *cam = &gspca_dev->cam;
298 297
299 cam->epaddr = 0x02;
300 gspca_dev->cam.cam_mode = vga_mode; 298 gspca_dev->cam.cam_mode = vga_mode;
301 gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode); 299 gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
302 sd->brightness = BRIGHTNESS_DEF; 300 sd->brightness = BRIGHTNESS_DEF;
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx.c b/drivers/media/video/gspca/stv06xx/stv06xx.c
index 13a021e3cbb7..c60b163335c5 100644
--- a/drivers/media/video/gspca/stv06xx/stv06xx.c
+++ b/drivers/media/video/gspca/stv06xx/stv06xx.c
@@ -429,7 +429,6 @@ static int stv06xx_config(struct gspca_dev *gspca_dev,
429 PDEBUG(D_PROBE, "Configuring camera"); 429 PDEBUG(D_PROBE, "Configuring camera");
430 430
431 cam = &gspca_dev->cam; 431 cam = &gspca_dev->cam;
432 cam->epaddr = STV_ISOC_ENDPOINT_ADDR;
433 sd->desc = sd_desc; 432 sd->desc = sd_desc;
434 gspca_dev->sd_desc = &sd->desc; 433 gspca_dev->sd_desc = &sd->desc;
435 434
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index 6d904d5e4c74..1f07476a9905 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -812,7 +812,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
812 struct cam *cam; 812 struct cam *cam;
813 813
814 cam = &gspca_dev->cam; 814 cam = &gspca_dev->cam;
815 cam->epaddr = 0x01;
816 815
817 sd->bridge = id->driver_info >> 8; 816 sd->bridge = id->driver_info >> 8;
818 sd->subtype = id->driver_info; 817 sd->subtype = id->driver_info;
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index 6ee111a3cbd1..74ca17845223 100644
--- a/drivers/media/video/gspca/t613.c
+++ b/drivers/media/video/gspca/t613.c
@@ -538,7 +538,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
538 struct cam *cam; 538 struct cam *cam;
539 539
540 cam = &gspca_dev->cam; 540 cam = &gspca_dev->cam;
541 cam->epaddr = 0x01;
542 541
543 cam->cam_mode = vga_mode_t16; 542 cam->cam_mode = vga_mode_t16;
544 cam->nmodes = ARRAY_SIZE(vga_mode_t16); 543 cam->nmodes = ARRAY_SIZE(vga_mode_t16);
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c
index 94163cceb28a..1da292ea1c77 100644
--- a/drivers/media/video/gspca/tv8532.c
+++ b/drivers/media/video/gspca/tv8532.c
@@ -241,7 +241,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
241 tv_8532WriteEEprom(gspca_dev); 241 tv_8532WriteEEprom(gspca_dev);
242 242
243 cam = &gspca_dev->cam; 243 cam = &gspca_dev->cam;
244 cam->epaddr = 1;
245 cam->cam_mode = sif_mode; 244 cam->cam_mode = sif_mode;
246 cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; 245 cam->nmodes = sizeof sif_mode / sizeof sif_mode[0];
247 246
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index 0525ea51a6de..ab5a25cfc69e 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -1979,7 +1979,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
1979 int sensor; 1979 int sensor;
1980 1980
1981 cam = &gspca_dev->cam; 1981 cam = &gspca_dev->cam;
1982 cam->epaddr = 0x02;
1983 sd->bridge = id->driver_info; 1982 sd->bridge = id->driver_info;
1984 1983
1985 vc0321_reset(gspca_dev); 1984 vc0321_reset(gspca_dev);
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index ec2a53d53fe2..c32477db3bab 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -7147,7 +7147,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
7147 } 7147 }
7148 7148
7149 cam = &gspca_dev->cam; 7149 cam = &gspca_dev->cam;
7150 cam->epaddr = 0x01;
7151/*fixme:test*/ 7150/*fixme:test*/
7152 gspca_dev->nbalt--; 7151 gspca_dev->nbalt--;
7153 if (vga) { 7152 if (vga) {