linux-kernelorg-stable/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
afe
common
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
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
configfs.h
consumer.h
driver.h
events.h
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.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