i2c-stu300: off by one issue
authorDan Carpenter <error27@gmail.com>
Wed, 7 Apr 2010 09:22:58 +0000 (12:22 +0300)
committerBen Dooks <ben-linux@fluff.org>
Tue, 20 Apr 2010 00:17:13 +0000 (01:17 +0100)
commit42df64b1f83fa9b786067a0b5a3aca0fbb2d8db8
treea0692e8bb1951a87849f03a9b04a853a8732ff17
parent28ad3321a1ac732c7fe37d5be85f67fe40ef18a9
i2c-stu300: off by one issue

If we don't find the correct rate, we want to end the loop with "i"
pointing to the last element in the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-stu300.c