[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aHE-o5_TvGtUyHoI@smile.fi.intel.com>
Date: Fri, 11 Jul 2025 19:41:07 +0300
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: David Lechner <dlechner@...libre.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: temperature: maxim_thermocouple: use
IIO_DECLARE_DMA_BUFFER_WITH_TS()
On Fri, Jul 11, 2025 at 10:33:55AM -0500, David Lechner wrote:
> Use IIO_DECLARE_DMA_BUFFER_WITH_TS() to declare the buffer used for
> scan data. There was not any documentation explaining the buffer layout
> previously, and this makes it self-documenting. The element type is
> also changed to __be16 to match the format of the data read from the
> device. This way, the count argument to IIO_DECLARE_DMA_BUFFER_WITH_TS()
> is just the number of channels rather than needing to calculate the
> number of bytes required.
...
> +#include <asm/byteorder.h>
Hmm... I see nothing about this change in the commit message.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists