[PATCH v2 4/6] iio: adc: ad7380: use IIO_DECLARE_BUFFER_WITH_TS
David Lechner
dlechner at baylibre.com
Tue Apr 22 15:41:03 PDT 2025
On 4/22/25 5:33 PM, Andy Shevchenko wrote:
> On Wed, Apr 23, 2025 at 1:08 AM David Lechner <dlechner at baylibre.com> wrote:
>>
>> Use IIO_DECLARE_BUFFER_WITH_TS to declare the buffer that gets used with
>> iio_push_to_buffers_with_ts(). This makes the code a bit easier to read
>> and understand.
>
> ...
>
>> + IIO_DECLARE_BUFFER_WITH_TS(u8, scan_data, MAX_NUM_CHANNELS * sizeof(u32))
>
> Btw, why not DECLARE_IIO_...() as other DECLARE_*() look like?
IMHO, namespace should always go first and people who write DECLARE_NS_... are
doing it wrong. :-)
There is not existing DECLARE_IIO_ to match anyway.
>
>> + __aligned(IIO_DMA_MINALIGN);
>
> Forgot to drop and use the DMA variant?
>
oops!
More information about the linux-arm-kernel
mailing list