From: Daniel Silverstone Date: Fri, 13 Mar 2009 13:53:46 +0000 (+0000) Subject: i2c-s3c2410: Simplify bus frequency calculation X-Git-Tag: v2.6.30-rc1~11^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c564e6ae6c5aa6e3995ff87ed4a32b4788ad5109;p=pandora-kernel.git i2c-s3c2410: Simplify bus frequency calculation The platform data for the i2c-s3c2410 driver used to allow a min, max and desired frequency for the I2C bus. This patch reduces it to simply a desired frequency ceiling and corrects all the uses of the platform data appropriately. This means, for example, that on a system with a 66MHz fclk, a request for 100KHz will achieve 65KHz which is safe and acceptable, rather than 378KHz which it would have achieved without this change. Signed-off-by: Simtec Linux Team Signed-off-by: Daniel Silverstone [ben-linux@fluff.org: tidy subject and description] Signed-off-by: Ben Dooks --- Reading git-diff-tree failed