diff options
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-i2c.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index d829d8f8c1f6..563a8319e608 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -523,7 +523,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c) | |||
523 | unsigned char buf; | 523 | unsigned char buf; |
524 | int i, rc; | 524 | int i, rc; |
525 | 525 | ||
526 | for (i = 0; i < 128; i++) { | 526 | for (i = 0; i < ARRAY_SIZE(i2c_devs); i++) { |
527 | c->addr = i; | 527 | c->addr = i; |
528 | rc = i2c_master_recv(c, &buf, 0); | 528 | rc = i2c_master_recv(c, &buf, 0); |
529 | if (rc < 0) | 529 | if (rc < 0) |