clk: fractional-divider: switch to rational best approximation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Sep 2015 15:54:11 +0000 (18:54 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Oct 2015 18:29:48 +0000 (11:29 -0700)
commit0777591e715a89fd44fd598167aa8beaa49f1776
tree42ae6f213cbe6a54aa7fd56181b559d487d07a7c
parent5d49a6e103790bddc4565a2076ff04beb38babc7
clk: fractional-divider: switch to rational best approximation

This patch converts the code to use rational best approximation algorithm which
is much more precise.

Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/Kconfig
drivers/clk/clk-fractional-divider.c