commit | ac07fb4dc1908d300f50fa711982c9d750eb59f7 | [log] [tgz] |
---|---|---|
author | Sonic Zhang <sonic.zhang@analog.com> | Mon Dec 21 09:28:30 2009 -0500 |
committer | Ben Dooks <ben-linux@fluff.org> | Thu Dec 24 01:24:48 2009 +0000 |
tree | 9a3e6149726b63a74d141bb4fe86b7fb3399435f | |
parent | c9f937e4a3f4ebf9924ec21d80632e5eb61d949c [diff] |
i2c-bfin-twi: fix CLKDIV calculation Calculation of the CLKDIV speed setting should be done using base 10 math rather than base 2. We also avoid exceeding the spec due to integer truncation and a 50% duty cycle. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Dooks <ben-linux@fluff.org>