i2c-s3c2410: Simplify bus frequency calculation
authorDaniel Silverstone <dsilvers@simtec.co.uk>
Fri, 13 Mar 2009 13:53:46 +0000 (13:53 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 7 Apr 2009 09:18:33 +0000 (10:18 +0100)
commitc564e6ae6c5aa6e3995ff87ed4a32b4788ad5109
treeb773106104d9897d945709d3bff8a56ff6586da8
parenta192f7153bb33151f83440cd9c0442233a064bf1
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 <linux@simtec.co.uk>
Signed-off-by: Daniel Silverstone <dsilvers@simtec.co.uk>
[ben-linux@fluff.org: tidy subject and description]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/mach-bast.c
arch/arm/mach-s3c2410/mach-n30.c
arch/arm/mach-s3c2412/mach-jive.c
arch/arm/plat-s3c/dev-i2c0.c
arch/arm/plat-s3c/dev-i2c1.c
arch/arm/plat-s3c/include/plat/iic.h
drivers/i2c/busses/i2c-s3c2410.c