i2c: xi2cps: Streamline divider calculation

Refactor the code to calculate clock dividers. Making it more readable
and getting rid of a useless loop.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>