mirror-linux/include/linux/iio
David Lechner 56bd57e7b1 iio: add IIO_DECLARE_QUATERNION() macro
Add a new IIO_DECLARE_QUATERNION() macro that is used to declare the
field in an IIO buffer struct that contains a quaternion vector.

Quaternions are currently the only IIO data type that uses the .repeat
feature of struct iio_scan_type. This has an implicit rule that the
element in the buffer must be aligned to the entire size of the repeated
element. This macro will make that requirement explicit. Since this is
the only user, we just call the macro IIO_DECLARE_QUATERNION() instead
of something more generic.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2026-03-02 20:52:21 +00:00
..
accel
adc iio: adc: qcom-vadc-common: fix vadc_scale_fn_type kernel-doc 2025-10-20 18:51:04 +01:00
afe
common iio: cros_ec_sensors: add cros_ec_activity driver 2025-06-26 19:32:51 +01:00
dac
frequency iio: frequency: ad9523: correct kernel-doc bad line warning 2026-01-29 17:10:44 +00:00
gyro
imu iio: imu: adis: fix all kernel-doc warnings in header file 2025-11-09 12:57:04 +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: update iio_backend_oversampling_ratio_set 2025-06-26 19:32:51 +01:00
buffer-dma.h iio: buffer-dma: Fix coding style complains 2025-12-21 12:00:27 +00: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: buffer: deprecated iio_push_to_buffers_with_timestamp() 2025-10-13 08:37:23 +01:00
buffer_impl.h iio: buffer: buffer_impl.h: fix kernel-doc warnings 2026-01-29 17:09:30 +00:00
configfs.h
consumer.h iio: buffer: document that buffer callback must be context safe 2025-10-13 08:37:24 +01:00
driver.h
events.h
hw-consumer.h
iio-gts-helper.h
iio-opaque.h iio: core: add separate lockdep class for info_exist_lock 2025-12-27 14:56:33 +00:00
iio.h iio: add IIO_DECLARE_QUATERNION() macro 2026-03-02 20:52:21 +00: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 iio: add power and energy measurement modifiers 2025-09-13 13:47:19 +01:00