staging:iio:adis16400: Fix adis16334 sampling frequency control
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 30 Oct 2012 10:26:00 +0000 (10:26 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 4 Nov 2012 15:55:32 +0000 (15:55 +0000)
commitea2ccb3e0271067ae8ed213b306d7545f5d1f8ce
treefd382c20deb0c9b52a0ddef6267cea4b126edc5f
parent15358a7f777529500cb1fcb089c09fb792fecf30
staging:iio:adis16400: Fix adis16334 sampling frequency control

Setting the sampling frequency for the adis16334 differs from the other devices.
This patch introduces two new callback functions to the adis16400 chip_info
struct which are used to specify how to read and write the current sample rate.
The patch also introduces the proper implementations for these callbacks for the
adis16334.

Related to this is that the adis16334 has no slow mode and so we do not limit
the SPI clock rate to 300kHz during initialization. The patch adds a new flag
for devices which do have a slow mode.

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