]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: imu: adis16480: Calculate the sampling frequency in a generic way
authorStefan Popa <stefan.popa@analog.com>
Wed, 27 Feb 2019 16:14:25 +0000 (18:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:43 +0000 (20:19 +0100)
commite0e6398e1e4e27b06307457be8a85a7a5c0f9ef0
tree31b941c7f515b6001713d90f778e9d83a320107e
parent6cf7b866bdd5cfbeb401cb65b928ebd46440490d
iio: imu: adis16480: Calculate the sampling frequency in a generic way

The adis1648x devices have an internal clock of 2.46 kSPS. The sampling
frequency is calculated by applying a decimation rate which can take the
maximum value of 2047.

Although all adis1648x devices are similar in this regard, devices that
will use this feature will be added in the future.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c