linux/include/linux/iio
Andy Shevchenko 8a2f9c41b9 iio: Convert IIO_CHAN_SOFT_TIMESTAMP() to be compound literal
Currently IIO_CHAN_SOFT_TIMESTAMP() can only be used to fill the static
data.  In some cases it would be convenient to use it as right value in
the assignment operation. But it can't be done as is, because compiler
has no clue about the data layout. Converting it to be a compound literal
allows the above mentioned usage.

While at it, tidy up the indentation.

We also have to change existing uses of compound literal at the same
time to avoid compiler errors.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2026-05-31 11:01:48 +01:00
..
accel
adc iio: adc: Add support for QCOM PMIC5 Gen3 ADC 2026-02-23 20:23:32 +00:00
afe iio: afe: rescale: add offset support 2022-02-27 13:38:10 +00:00
common iio: st_sensors: correct kernel-doc issues 2026-03-22 11:53:19 +00:00
dac dt-bindings:iio:dac: update microchip,mcp4725.yaml reference 2021-04-07 08:36:38 +01:00
frequency iio: frequency: ad9523: correct kernel-doc bad line warning 2026-01-29 17:10:44 +00:00
gyro iio: gyro: itg3200_core: do not use internal iio_dev lock 2022-11-23 19:43:58 +00:00
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: add devm_iio_backend_get_by_index() 2026-05-31 10:59:32 +01:00
buffer_impl.h iio: buffer: buffer_impl.h: fix kernel-doc warnings 2026-01-29 17:09:30 +00: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: Move from int64_t to s64 for timestamp 2026-05-31 10:59:32 +01: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 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: buffer: drop devm_iio_hw_consumer_free() API call 2020-04-19 16:56:37 +01:00
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: add separate lockdep class for info_exist_lock 2025-12-27 14:56:33 +00:00
iio.h iio: Convert IIO_CHAN_SOFT_TIMESTAMP() to be compound literal 2026-05-31 11:01:48 +01:00
kfifo_buf.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
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 iio: Add IIO_STATIC_CONST_DEVICE_ATTR 2022-11-23 19:44:03 +00:00
trigger_consumer.h iio: Add __printf() attributes to various allocation functions 2020-09-21 18:54:18 +01:00
trigger.h iio: trigger: Add simple trigger_validation helper 2023-05-23 21:20:17 +01:00
triggered_buffer.h iio: Don't silently expect attribute types 2022-11-23 19:44:04 +00:00
triggered_event.h
types.h iio: core: Add IIO_EV_INFO_SCALE to event info 2026-03-01 12:04:07 +00:00