summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/adxl345_core.c
diff options
context:
space:
mode:
authorStefan Popa2018-08-20 16:54:27 +0200
committerJonathan Cameron2018-08-25 10:18:35 +0200
commit5e605a4df6f18dc4e2e529f5f2e01f76441cece5 (patch)
treeacdb1d6951af205fab1fb7a522bbbc967b3bfbcb /drivers/iio/accel/adxl345_core.c
parentiio: adxl372: Provide validate_trigger and validate_device callbacks (diff)
downloadkernel-qcow2-linux-5e605a4df6f18dc4e2e529f5f2e01f76441cece5.tar.gz
kernel-qcow2-linux-5e605a4df6f18dc4e2e529f5f2e01f76441cece5.tar.xz
kernel-qcow2-linux-5e605a4df6f18dc4e2e529f5f2e01f76441cece5.zip
iio:adxl372: Add sampling frequency support
This patch adds the option for the user to select the sampling frequency. Also, the user can read the available frequencies and read the currently set frequency via the read_raw function. The frequency can be set via the write_raw function. When the frequency is set, the bandwidth is also checked and ensured that it is constrained to at most half of the sampling frequency. Also, the activity and inactivity timers have to be updated because they depend on the selected ODR. Signed-off-by: Stefan Popa <stefan.popa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/adxl345_core.c')
0 files changed, 0 insertions, 0 deletions