diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 13:42:30 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-27 20:45:12 +0200 |
commit | 53c4e9551c2930767fcdaa54323616c32ed6e9c6 (patch) | |
tree | 76ae6b22c77f81e4f36b29ef79cfbd7ca6367ece /drivers/media/video/bt8xx | |
parent | V4L/DVB (5478): Use ARRAY_SIZE and a cleaner logic for initializing tuner (diff) | |
download | linux-53c4e9551c2930767fcdaa54323616c32ed6e9c6.tar.xz linux-53c4e9551c2930767fcdaa54323616c32ed6e9c6.zip |
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/bt8xx')
-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) unsigned char buf; int i,rc; - for (i = 0; i < 128; i++) { + for (i = 0; i < ARRAY_SIZE(i2c_devs); i++) { c->addr = i; rc = i2c_master_recv(c,&buf,0); if (rc < 0) |