twx-linux/include/linux/iio
Jonathan Cameron 8f08055bc6 iio: introduced iio_push_to_buffers_with_ts() that takes a data_total_len argument.
Check that data_total_len argument against iio_dev->scan_bytes.

The size needs to be at least as big as the scan. It can be larger,
which is typical if only part of fixed sized storage is used due to
a subset of channels being enabled.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-6-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-05-21 14:20:25 +01:00
..
accel
adc iio: adc: ad7173: move fwnode_irq_get_byname() call site 2025-02-03 19:15:37 +00:00
afe
common iio: invensense: fix timestamp glitches when switching frequency 2024-05-03 11:48:56 +01:00
dac
frequency
gyro
imu iio: imu: adis: Add DIAG_STAT register 2025-02-22 12:23:49 +00:00
timer iio: trigger: stm32-lptimer: add support for stm32mp25 2025-04-22 19:09:54 +01:00
adc-helpers.h iio: adc: add helpers for parsing ADC nodes 2025-04-22 19:09:52 +01:00
backend.h iio: backend: add support for data source get 2025-04-22 19:10:03 +01:00
buffer_impl.h iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
buffer-dma.h iio: buffer-dma: Enable support for DMABUFs 2024-06-30 11:29:24 +01:00
buffer-dmaengine.h iio: buffer-dmaengine: add devm_iio_dmaengine_buffer_setup_with_handle() 2025-02-10 18:47:49 +00:00
buffer.h iio: introduced iio_push_to_buffers_with_ts() that takes a data_total_len argument. 2025-05-21 14:20:25 +01:00
configfs.h
consumer.h iio: consumers: ensure read buffers for labels and ext_info are page aligned 2024-12-11 19:20:49 +00:00
driver.h iio: adc: Constify struct iio_map 2024-09-30 09:21:02 +01:00
events.h iio: events: make IIO_EVENT_CODE macro private 2024-11-03 20:33:45 +00:00
hw-consumer.h
iio-gts-helper.h iio: gts-helper: export iio_gts_get_total_gain() 2025-02-08 15:16:29 +00:00
iio-opaque.h iio: core: fix doc reference to iio_push_to_buffers_with_ts_unaligned 2024-12-07 17:52:44 +00:00
iio.h iio: Adjust internals of handling of direct mode claiming to suit new API. 2025-04-22 19:10:01 +01:00
kfifo_buf.h
machine.h
sw_device.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sw_trigger.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sysfs.h
trigger_consumer.h
trigger.h
triggered_buffer.h
triggered_event.h
types.h iio: core: introduce trough info element for minimum values 2023-12-11 19:37:10 +00:00