]> git.baikalelectronics.ru Git - kernel.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)
commit79c5c78201b915f2e3551bf910c85102c051d47c
tree31b941c7f515b6001713d90f778e9d83a320107e
parent043cea5c4b95e2c5770801438aaaa209cac8b75b
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