aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-i2c.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-03-29 07:42:30 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:45:12 -0400
commit53c4e9551c2930767fcdaa54323616c32ed6e9c6 (patch)
tree76ae6b22c77f81e4f36b29ef79cfbd7ca6367ece /drivers/media/video/saa7134/saa7134-i2c.c
parent5b9c4e6dbb3204568d4c058af6e34772393ada19 (diff)
V4L/DVB (5479): Use ARRAY_SIZE instead of a magic number
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-i2c.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c
index 4e8d6c94ea60..1cb8c709ca90 100644
--- a/drivers/media/video/saa7134/saa7134-i2c.c
+++ b/drivers/media/video/saa7134/saa7134-i2c.c
@@ -447,7 +447,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
447 unsigned char buf; 447 unsigned char buf;
448 int i,rc; 448 int i,rc;
449 449
450 for (i = 0; i < 128; i++) { 450 for (i = 0; i < ARRAY_SIZE(i2c_devs); i++) {
451 c->addr = i; 451 c->addr = i;
452 rc = i2c_master_recv(c,&buf,0); 452 rc = i2c_master_recv(c,&buf,0);
453 if (rc < 0) 453 if (rc < 0)