From: Sonic Zhang Date: Mon, 21 Dec 2009 14:28:30 +0000 (-0500) Subject: i2c-bfin-twi: fix CLKDIV calculation X-Git-Tag: v2.6.33-rc2~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac07fb4dc1908d300f50fa711982c9d750eb59f7;p=pandora-kernel.git 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 Signed-off-by: Mike Frysinger Signed-off-by: Ben Dooks --- Reading git-diff-tree failed