Re: [PATCH v0 1/1] iio: Convert IIO_CHAN_SOFT_TIMESTAMP() to be compound literal
From: Andy Shevchenko
Date: Mon May 18 2026 - 03:17:32 EST
On Mon, May 18, 2026 at 09:13:29AM +0200, Andy Shevchenko wrote:
> 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.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
>
> v0: to be incorporated into David's series
Also may require to amend the drivers (at the same time) that use it inline
drivers/iio/adc/ad7606.c:1478
drivers/iio/adc/max11410.c:807
to avoid potential compilation issues.
--
With Best Regards,
Andy Shevchenko