aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/buffer/kfifo_buf.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-02-25 17:47:33 -0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-25 19:13:49 +0000
commitdafcf4ed8392476099c9e95642d2daa6e61ee1b6 (patch)
tree34465b2692ec2b491ef1bf92a4fed1827dbf97ea /drivers/iio/buffer/kfifo_buf.c
parentstaging: iio: remove mention of defunct list (diff)
downloadlinux-dev-dafcf4ed8392476099c9e95642d2daa6e61ee1b6.tar.xz
linux-dev-dafcf4ed8392476099c9e95642d2daa6e61ee1b6.zip
iio: hrtimer: Allow sub Hz granularity
Allow setting frequency below 1Hz or sub 1Hz precision. Useful for slow sensors like ALS. Test frequency is set properly: modprobe iio-trig-hrtimer && \ mkdir /sys/kernel/config/iio/triggers/hrtimer/t1 && \ cd /sys/bus/iio/devices/triggerX ; for i in 1 .1 .01 .001 ; do echo $i > sampling_frequency cat sampling_frequency done Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210226014733.2108544-1-gwendal@chromium.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/buffer/kfifo_buf.c')
0 files changed, 0 insertions, 0 deletions