diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2012-07-20 10:31:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-16 21:24:33 +0200 |
commit | 8857df3aceb7a8eb7558059b7da109e41dd1fb95 (patch) | |
tree | ba45e6d7779aab84f6a7c1ba37697d9914158b97 /kernel/extable.c | |
parent | iio: staging: ad7298_ring: Fix maybe-uninitialized warning (diff) | |
download | linux-8857df3aceb7a8eb7558059b7da109e41dd1fb95.tar.xz linux-8857df3aceb7a8eb7558059b7da109e41dd1fb95.zip |
iio: frequency: ADF4350: Fix potential reference div factor overflow.
With small channel spacing values and high reference frequencies it is
possible to exceed the range of the 10-bit counter.
Workaround by checking the range and widening some constrains.
We don't use the REG1_PHASE value in this case the datasheet recommends to set
it to 1 if not used.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'kernel/extable.c')
0 files changed, 0 insertions, 0 deletions