]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i2c: Timeouts off by 1
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 5 May 2009 06:39:24 +0000 (08:39 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 5 May 2009 06:39:24 +0000 (08:39 +0200)
commit4ccc28f725bc2b7b0a3bc27e9c15f4eaf63fb812
treef1a3a3424713340aabb5722fc1accad149fc5052
parentb4348f32dae3cb6eb4bc21c7ed8f76c0b11e9d6a
i2c: Timeouts off by 1

with while (timeout++ < MAX_TIMEOUT); timeout reaches MAX_TIMEOUT + 1
after the loop, so the tests below are off by one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-ali15x3.c
drivers/i2c/busses/i2c-amd756.c
drivers/i2c/busses/i2c-i801.c
drivers/i2c/busses/i2c-isch.c
drivers/i2c/busses/i2c-nforce2.c
drivers/i2c/busses/i2c-sis5595.c
drivers/i2c/busses/i2c-sis630.c
drivers/i2c/busses/i2c-sis96x.c