Re: [PATCH 3/4] iio: buffer: cache largest scan element size

From: David Lechner

Date: Mon Mar 02 2026 - 17:03:19 EST


On 3/2/26 2:47 PM, Jonathan Cameron wrote:
> On Sun, 01 Mar 2026 14:24:52 -0600
> David Lechner <dlechner@xxxxxxxxxxxx> wrote:
>
>> Cache the largest scan element size of elements enabled in a scan
>> buffer. This will be used later to ensure proper alignment of the
>> timestamp element in the scan buffer.
> Why can't we just stash the start of the timestamp?

This is exactly what Nuno suggested. ;-)