Skip to content
Commit 9528d1c7 authored by Michael Hennerich's avatar Michael Hennerich Committed by Ben Dooks
Browse files

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: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
[ben-linux@fluff.org: shortened subject line]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent f3ad1165
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment