linux/drivers/iio
Josselin Costanzi 37d3455672 iio: add watermark logic to iio read and poll
Currently the IIO buffer blocking read only wait until at least one
data element is available.
This patch makes the reader sleep until enough data is collected before
returning to userspace. This should limit the read() calls count when
trying to get data in batches.

Co-author: Yannick Bedhomme <yannick.bedhomme@mobile-devices.fr>
Signed-off-by: Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
[rebased and remove buffer timeout]
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-03-29 16:17:09 +01:00
..
accel iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00
adc First set of new drivers, cleanups and functionality for IIO in the 4.1 cycle. 2015-03-24 22:53:52 +01:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common iio: constify of_device_id array 2015-03-28 10:55:37 +00:00
dac iio: max517: Add support for MAX520 and MAX521 chips. 2015-03-28 10:57:34 +00:00
frequency iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom 2015-01-01 12:18:26 +00:00
gyro IIO: Add support for L3GD20H gyroscope 2015-03-28 11:13:35 +00:00
humidity IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc 2015-02-14 11:35:12 +00:00
imu First set of new drivers, cleanups and functionality for IIO in the 4.1 cycle. 2015-03-24 22:53:52 +01:00
light First set of new drivers, cleanups and functionality for IIO in the 4.1 cycle. 2015-03-24 22:53:52 +01:00
magnetometer iio: ak8975: fix AK09911 dependencies 2015-02-28 11:26:54 +00:00
orientation iio: hid-sensor-incl-3d: Introduce PM 2015-01-25 22:55:56 +00:00
pressure iio: pressure: add support for MS5611 pressure and temperature sensor 2015-03-15 11:47:46 +00:00
proximity iio: improve usage of gpiod API 2015-02-22 09:49:22 +00:00
temperature iio: mlx90614: Refactor register symbols 2015-03-09 14:56:58 +00:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: add watermark logic to iio read and poll 2015-03-29 16:17:09 +01:00
industrialio-core.c iio: core: Introduce IIO_CHAN_INFO_DEBOUNCE_COUNT and _TIME 2015-01-29 18:49:57 +00:00
industrialio-event.c iio: core: Remove IIO_EV_TYPE_INSTANCE 2015-01-27 18:49:55 +00:00
industrialio-trigger.c
industrialio-triggered-buffer.c iio: kfifo: Remove unused argument in iio_kfifo_allocate 2014-12-26 11:20:38 +00:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c iio: add watermark logic to iio read and poll 2015-03-29 16:17:09 +01:00
Makefile