Re: [PATCH 2/7] iio: pressure: dps310: read the coefficients with get_unaligned_be*()
From: Andy Shevchenko
Date: Tue Nov 24 2026 - 03:25:02 EST
On Tue, Nov 24, 2026 at 12:06:44AM +0200, Rupesh Majhi wrote:
> The coefficients are big endian fields, some of them 12 or 20 bits
> wide and not byte aligned. Read each with get_unaligned_be16() or
> get_unaligned_be24() and let sign_extend32() drop the bits of the
> neighbouring field, as the ZTS8032 coefficients already do.
I have checked all the lines (especially ones that use right shifts)
and found no issues,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
You should probably add
No functional change intended.
--
With Best Regards,
Andy Shevchenko