Re: [PATCH v2] iio: accel: bmc150: use IIO_DECLARE_BUFFER_WITH_TS

From: Jonathan Cameron

Date: Wed Aug 12 2026 - 00:52:26 EST


On Mon, 10 Aug 2026 12:00:05 +0300
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:

> On Mon, Aug 10, 2026 at 12:18:52AM +0100, Jonathan Cameron wrote:
> > On Sun, 9 Aug 2026 23:59:34 +0100
> > Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> > > On Sun, 9 Aug 2026 11:24:42 +0530
> > > Yash Suthar <yashsuthar983@xxxxxxxxx> wrote:
>
> ...
>
> > Actually no. I've backed that out.
> >
> > Given the data alignment is fixed, if we were going to do this it would
> > be clearer as
> > struct {
> > s16 chans[3]; //see later, I believe this should be __le16
> > aligned_s64 timestamp;
> > };
> >
> > But that is very similar to the structure that follows immediately after
> > this, but that has __le16 chans[]
> >
> > So what is going on here?
>
> AI slop?

It's the original code I'm complaining about. Been around a while!
So for once, nope (I think!)


Jonathan

>