OSDN Git Service

iio:adxl372: Add filter bandwidth support
authorStefan Popa <stefan.popa@analog.com>
Mon, 20 Aug 2018 14:54:55 +0000 (17:54 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Aug 2018 08:19:33 +0000 (09:19 +0100)
commit7ec040af6ce11285c8bd3ec59a1a570db742e9aa
tree49041c947d8390abad5c2159d8c578cdc63b982b
parent5e605a4df6f18dc4e2e529f5f2e01f76441cece5
iio:adxl372: Add filter bandwidth support

This patch adds the option for the user to select the filter bandwidth. The
user can also read the available bandwidths which are always adjusted to be
at most half of the sampling frequency. Furthermore, the currently selected
bandwidth can be read via the read_raw function, while the write_raw sets a
new bandwidth value.

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