From: Chao Xie Date: Thu, 23 Jan 2014 02:47:41 +0000 (+0800) Subject: clk: mmp: fix the wrong calculation formula X-Git-Tag: v3.15-rc1~72^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45693a6480cee906557a9fba533a9f3c224f91e;p=pandora-kernel.git clk: mmp: fix the wrong calculation formula The formula is numerator/denominator = Fin / (Fout * factor) So Fout = Fin * denominator / (numerator * factor). Current clk_factor_round_rate and clk_factor_recalc_rate use wrong formula. This patch will fix them. Signed-off-by: Chao Xie Signed-off-by: Mike Turquette --- Reading git-diff-tree failed