From: Lars-Peter Clausen Date: Wed, 16 Jan 2013 12:48:00 +0000 (+0000) Subject: staging:iio:adis16400: Don't pass 0 to ilog2 X-Git-Tag: v3.9-rc1~127^2~276^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06220b89f2284f910f925676d757fd3331138dc6;p=pandora-kernel.git staging:iio:adis16400: Don't pass 0 to ilog2 ilog2 is not defined for 0, so we need to handle the case where the requested frequency is larger than the base sampling rate. In this case we'll round down and set the sampling rate to the base sampling rate. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed