staging:iio:adis16400: Fix and cleanup 3db filter setting
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Jan 2013 12:48:00 +0000 (12:48 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 26 Jan 2013 10:07:47 +0000 (10:07 +0000)
commitbdb20bdb8c1ea55c9a2f744cc5b2c7f66148a41b
tree12d0edec2bf890cf954000715e7e50221317961f
parent06220b89f2284f910f925676d757fd3331138dc6
staging:iio:adis16400: Fix and cleanup 3db filter setting

The 3db divisors table is partially wrong and incomplete. Also the code rounds
up to the next higher frequency if the requested frequency would matches one of
the available frequencies. These two issues are fixed by this patch. The patch
also changes the driver to round down the filter frequency if it is larger than
the largest supported frequency instead of rejecting it as an invalid value.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/imu/adis16400_core.c