iio: ad9523-1: Improve reported VCO frequency accuracy
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 17 May 2019 13:37:11 +0000 (16:37 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 May 2019 08:40:37 +0000 (09:40 +0100)
commit0d698a538f8d4827c3209c44db57ca5a5945550e
tree98d0c4eccdaa170a7e8039593c68fa540ba0ed41
parenta2d2010d95cd7ffe3773aba6eaee35d54e332c25
iio: ad9523-1: Improve reported VCO frequency accuracy

To improve the accuracy of the reported VCO frequency perform all
multiplications before divisions. This reduces rounding errors and makes
sure the reported rates are accurate down to the last digit.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/ad9523.c