iio:adis16400: Add support for the 52.85 Hz base sampling rate
commit7ba8a04dcdfb5ebcb4985a92dfc4dc4f59510464
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Jan 2013 12:48:00 +0000 (16 12:48 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 26 Jan 2013 10:07:50 +0000 (26 10:07 +0000)
tree91cdd183b50f4be62ac6e97dec52e6aee1f8e41e
parentb24150e31ab27ffcd2aa9b33dca42c2070526054
iio:adis16400: Add support for the 52.85 Hz base sampling rate

The adis16400 and similar have two different base sampling rate available, from
which the actual sampling rate is derived. 1638 Hz and 52.85 Hz, switching to
the lower base sampling rate allows to support lower sampling rates.

This patch adds support for switching to the lower base sampling rate if the
requested sampling frequency is outside of the range which can be supported by
the higher base sampling rate.

The function which is used to read the current sampling rate already has support
for the lower sampling rate, so no changes are required there.

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