summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-i2c.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-05-22 10:30:04 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-22 10:30:04 -0300
commit4a78e983d25641804f5c0c83b6c10e51063b7872 (patch)
treece0631476907751234d1d60ee9d1f72e18b30de2 /linux/drivers/media/video/saa7134/saa7134-i2c.c
parent2a03de082a1ec685712a48cedb06a73d5d607088 (diff)
parent126b42f75f3d60cf024d206f8d7fb8680903cf8a (diff)
downloadmediapointer-dvb-s2-4a78e983d25641804f5c0c83b6c10e51063b7872.tar.gz
mediapointer-dvb-s2-4a78e983d25641804f5c0c83b6c10e51063b7872.tar.bz2
merge: http://linuxtv.org/hg/~aapot/m920x
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-i2c.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-i2c.c b/linux/drivers/media/video/saa7134/saa7134-i2c.c
index 1d41abee5..f470c85e7 100644
--- a/linux/drivers/media/video/saa7134/saa7134-i2c.c
+++ b/linux/drivers/media/video/saa7134/saa7134-i2c.c
@@ -465,7 +465,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)