Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137949
b: refs/heads/master
c: 603538a
h: refs/heads/master
i:
  137947: fb6812f
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 7eb5858 commit 5774f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d97770a687b282184e85027628b030f8a5c53d2
refs/heads/master: 603538a085e42c02b9b3184b6104d73e22a7e5d1
13 changes: 3 additions & 10 deletions trunk/drivers/media/video/gspca/zc3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -6987,7 +6987,7 @@ static int vga_3wr_probe(struct gspca_dev *gspca_dev)
static int zcxx_probeSensor(struct gspca_dev *gspca_dev)
{
struct sd *sd = (struct sd *) gspca_dev;
int sensor, sensor2;
int sensor;

switch (sd->sensor) {
case SENSOR_MC501CB:
Expand All @@ -7002,16 +7002,9 @@ static int zcxx_probeSensor(struct gspca_dev *gspca_dev)
break;
}
sensor = vga_2wr_probe(gspca_dev);
if (sensor >= 0) {
if (sensor < 0x7600)
return sensor;
/* next probe is needed for OmniVision ? */
}
sensor2 = vga_3wr_probe(gspca_dev);
if (sensor2 >= 0
&& sensor >= 0)
if (sensor >= 0)
return sensor;
return sensor2;
return vga_3wr_probe(gspca_dev);
}

/* this function is called at probe time */
Expand Down

0 comments on commit 5774f62

Please sign in to comment.