All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] saa7146_i2c: saa7146_i2c_transfer() wrong?
@ 2009-01-31 16:52 ` Roel Kluin
  0 siblings, 0 replies; 4+ messages in thread
From: Roel Kluin @ 2009-01-31 16:52 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: linux-media-u79uwXL29TY76Z2rM5mHXA,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

vi drivers/media/common/saa7146_i2c.c +292

in saa7146_i2c_transfer(..., int retries) 
{
	int address_err = 0;
	do {
		...
		if (...)
			address_err++;
		...
	} while (retries--);

	/* if every retry had an address error, exit right away */
        if (address_err == retries) {
                goto out;
        }
	...
}
this is wrong, isn't it?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-01 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 16:52 [PATCH] saa7146_i2c: saa7146_i2c_transfer() wrong? Roel Kluin
2009-01-31 16:52 ` Roel Kluin
     [not found] ` <498481B5.4030702-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-01 10:55   ` Jean Delvare
2009-02-01 10:55     ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.