i2c-s3c2410: fix calculation of SDA line delay
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 30 Sep 2010 13:54:46 +0000 (15:54 +0200)
committerBen Dooks <ben-linux@fluff.org>
Thu, 30 Sep 2010 23:00:35 +0000 (00:00 +0100)
commit7031307aefb6048377385dbb0af2dd43bb0190bb
treec62a0f658aaa21ccd957d39cb385f16c279c2f04
parent4bba0fd8d1c6d405df666e2573e1a1f917098be0
i2c-s3c2410: fix calculation of SDA line delay

S3C2440 style I2C controller uses PCLK to calculate the SDA line delay.
The driver wrongly assumed that this delay is calculated from the
frequency that the controller is operating on. This patch fixes this
issue.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-s3c2410.c