mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Lechner <dlechner@baylibre.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] iio: imu: bno055: add explicit scan buf layout
Date: Sat, 14 Mar 2026 16:39:42 -0500	[thread overview]
Message-ID: <84473bc2-727e-4440-bade-d9cc3ee62698@baylibre.com> (raw)
In-Reply-To: <aaVRjr3ntMHYq-k9@ashevche-desk.local>

On 3/2/26 2:59 AM, Andy Shevchenko wrote:
> On Sat, Feb 28, 2026 at 02:15:51PM -0600, David Lechner wrote:
>> Move the scan buf.chans array into a union along with a struct that
>> gives the layout of the buffer with all channels enabled.
>>
>> Although not technically required in this case, if there had been a
>> different number of items before the quaternion, there could have been
>> a subtle bug with the special alignment needed for the quaternion
>> channel data and the array would have been too small.
> 
> Cool thing!
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> 

Forgot to mention in v3 that I didn't pick up the tag because I
changed it significantly, so worth another look.

  reply	other threads:[~2026-03-14 21:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-28 20:15 David Lechner
2026-03-02  8:59 ` Andy Shevchenko
2026-03-14 21:39   ` David Lechner [this message]
2026-03-02 21:14 ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84473bc2-727e-4440-bade-d9cc3ee62698@baylibre.com \
    --to=dlechner@baylibre.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®