i2c: Blackfin TWI: make sure we don't end up with a CLKDIV=0
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 18 May 2009 12:14:41 +0000 (08:14 -0400)
committerBen Dooks <ben-linux@fluff.org>
Sat, 13 Jun 2009 09:39:25 +0000 (10:39 +0100)
commit9528d1c7a541b481a0e80301dc8d545848104023
treed42eedf34ee8d79d4fe4acf3a48c260748443b34
parentf3ad116588151b3371ae4e092290e4f48e62b8bb
i2c: Blackfin TWI: make sure we don't end up with a CLKDIV=0

Make sure we don't end up with an invalid CLKDIV=0 in case someone
specifies 20kHz SCL or less (5 * 1024 / 20 = 0x100).

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
[ben-linux@fluff.org: shortened subject line]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-bfin-twi.c