diff options
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-i2c.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/bt8xx/bttv-i2c.c b/drivers/media/video/bt8xx/bttv-i2c.c index 62b873076e09..0dfa49b66418 100644 --- a/drivers/media/video/bt8xx/bttv-i2c.c +++ b/drivers/media/video/bt8xx/bttv-i2c.c | |||
@@ -412,7 +412,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c) | |||
412 | unsigned char buf; | 412 | unsigned char buf; |
413 | int i,rc; | 413 | int i,rc; |
414 | 414 | ||
415 | for (i = 0; i < 128; i++) { | 415 | for (i = 0; i < ARRAY_SIZE(i2c_devs); i++) { |
416 | c->addr = i; | 416 | c->addr = i; |
417 | rc = i2c_master_recv(c,&buf,0); | 417 | rc = i2c_master_recv(c,&buf,0); |
418 | if (rc < 0) | 418 | if (rc < 0) |