diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-i2c.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 9830d5c43921..7919a1f9da06 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -1,3 +1,4 @@ | |||
1 | |||
1 | /* | 2 | /* |
2 | 3 | ||
3 | cx88-i2c.c -- all the i2c code is here | 4 | cx88-i2c.c -- all the i2c code is here |
@@ -195,7 +196,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c) | |||
195 | unsigned char buf; | 196 | unsigned char buf; |
196 | int i,rc; | 197 | int i,rc; |
197 | 198 | ||
198 | for (i = 0; i < 128; i++) { | 199 | for (i = 0; i < ARRAY_SIZE(i2c_devs); i++) { |
199 | c->addr = i; | 200 | c->addr = i; |
200 | rc = i2c_master_recv(c,&buf,0); | 201 | rc = i2c_master_recv(c,&buf,0); |
201 | if (rc < 0) | 202 | if (rc < 0) |