Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366886
b: refs/heads/master
c: b3944c8
h: refs/heads/master
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 29, 2013
1 parent 5d182f8 commit 515db5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 484fbbeb3eed224e11f016ee212f07e698a24f97
refs/heads/master: b3944c8f676de2e7ccd78151ae6a0518a9c44df6
7 changes: 3 additions & 4 deletions trunk/drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2309,11 +2309,10 @@ static int em28xx_initialize_mt9m001(struct em28xx *dev)
return 0;
}

/* HINT method: webcam I2C chips
*
/*
* This method works for webcams with Micron sensors
*/
static int em28xx_hint_sensor(struct em28xx *dev)
static int em28xx_detect_sensor(struct em28xx *dev)
{
int rc;
char *sensor_name;
Expand Down Expand Up @@ -2746,7 +2745,7 @@ static void em28xx_card_setup(struct em28xx *dev)
* If sensor is not found, then it isn't a webcam.
*/
if (dev->board.is_webcam) {
if (em28xx_hint_sensor(dev) < 0)
if (em28xx_detect_sensor(dev) < 0)
dev->board.is_webcam = 0;
else
dev->progressive = 1;
Expand Down

0 comments on commit 515db5d

Please sign in to comment.