Xilinx: ARM: I2C: Modified clock divisor calculation logic
commitb20737403d81fd65afe57455190547e6e267ac02
authorSuneel <suneelg@xilinx.com>
Thu, 30 Aug 2012 15:04:16 +0000 (30 20:34 +0530)
committerJohn Linn <john.linn@xilinx.com>
Thu, 30 Aug 2012 15:55:44 +0000 (30 08:55 -0700)
tree3d1ab727d2070f339fb98be342912b195c7b0966
parentcbb99801b4430beb0bbfc401134f35dfe0ecfe87
Xilinx: ARM: I2C: Modified clock divisor calculation logic

Modified the calculation of clock divisor logic to achieve
minimum deviation from the required i2c clock frequency.

Signed-off-by: Suneel <suneelg@xilinx.com>
drivers/i2c/busses/i2c-xilinx_ps.c