From: Michael Hennerich Date: Fri, 20 Jul 2012 08:31:00 +0000 (+0100) Subject: iio: frequency: ADF4350: Fix potential reference div factor overflow. X-Git-Tag: v3.6-rc3~38^2^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8857df3aceb7a8eb7558059b7da109e41dd1fb95;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed