mirror-linux/include/linux/iio
David Lechner 63fc53526d iio: introduce IIO_DECLARE_BUFFER_WITH_TS macros
Add new macros to help with the common case of declaring a buffer that
is safe to use with iio_push_to_buffers_with_ts(). This is not trivial
to do correctly because of the alignment requirements of the timestamp.
This will make it easier for both authors and reviewers.

To avoid double __align() attributes in cases where we also need DMA
alignment, add a 2nd variant IIO_DECLARE_DMA_BUFFER_WITH_TS().

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250507-iio-introduce-iio_declare_buffer_with_ts-v6-2-4aee1b9f1b89@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-05-21 14:20:31 +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-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
buffer_impl.h iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +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: introduce IIO_DECLARE_BUFFER_WITH_TS macros 2025-05-21 14:20:31 +01:00
kfifo_buf.h
machine.h
sw_device.h
sw_trigger.h
sysfs.h
trigger.h
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h