Re: [PATCH 1/7] iio: pressure: dps310: sort register field defines low to high
From: Andy Shevchenko
Date: Wed Nov 25 2026 - 05:30:40 EST
On Wed, Nov 25, 2026 at 09:50:36AM +0200, Rupesh Majhi wrote:
> On Tue, Nov 24, 2026 at 10:13:09AM +0200, Andy Shevchenko wrote:
> > On Tue, Nov 24, 2026 at 12:06:43AM +0200, Rupesh Majhi wrote:
> > > Some field defines run from the high bit down, others from the low bit
> > > up. Sort them all low to high.
> >
> > Have you checked which change is less invasive? Can you do it locally and
> > provide diffstat
>
> High to low is less:
>
> drivers/iio/pressure/dps310.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> Went low to high as David asked for that, but datasheet lists
> the bits from 7 down, so I will sort high to low in v2.
Okay, this argument is even better! Thanks for checking and confirming this.
--
With Best Regards,
Andy Shevchenko