summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2012-12-27 01:14:30 +0100
committerMike Turquette <mturquette@linaro.org>2013-01-16 01:16:24 +0100
commit72480014b86c8b51fb51c5c6a0525876055c37c7 (patch)
tree7c9d0254c7dda9d1089415814ac72f7190ba7271 /drivers/iio
parentclk: vt8500: Fix error in PLL calculations on non-exact match. (diff)
downloadlinux-72480014b86c8b51fb51c5c6a0525876055c37c7.tar.xz
linux-72480014b86c8b51fb51c5c6a0525876055c37c7.zip
clk: vt8500: Fix device clock divisor calculations
When calculating device clock divisor values in set_rate and round_rate, we do a simple integer divide. If parent_rate / rate has a fraction, this is dropped which results in the device clock being set too high. This patch corrects the problem by adding 1 to the calculated divisor if the division would have had a decimal result. Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions