From: Sascha Hauer Date: Mon, 4 Jun 2012 12:51:32 +0000 (+0200) Subject: ARM i.MX pllv2: make round_rate accurate X-Git-Tag: v3.5-rc4~35^2~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ca41bccc39f5ebbbb515dfadb2e0f912168c8bd;p=pandora-kernel.git ARM i.MX pllv2: make round_rate accurate in round_rate we made the assumption that we can set arbitrary frequencies and thus returned the input rate. This is not correct, for certain frequencies after setting a frequency with set_rate, recalc_rate will return different values. To fix this, introduce set_rate/recalc_rate functions which work on variables instead of registers directly. This way we can call these in round_rate to get the exact rate which we would get if we call set_rate with this value. Signed-off-by: Sascha Hauer --- Reading git-diff-tree failed