[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250421145804.6ee78b66@jic23-huawei>
Date: Mon, 21 Apr 2025 14:58:04 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Gabriel Shahrouzi <gshahrouzi@...il.com>
Cc: lars@...afoo.de, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, Michael.Hennerich@...log.com,
skhan@...uxfoundation.org, linux-kernel-mentees@...ts.linux.dev
Subject: Re: [PATCH] iio: adis16201: Correct inclinometer channel resolution
On Mon, 21 Apr 2025 09:05:24 -0400
Gabriel Shahrouzi <gshahrouzi@...il.com> wrote:
> On Mon, Apr 21, 2025 at 7:49 AM Jonathan Cameron <jic23@...nel.org> wrote:
> >
> > On Sat, 19 Apr 2025 10:45:20 -0400
> > Gabriel Shahrouzi <gshahrouzi@...il.com> wrote:
> >
> > > The inclinometer channels were previously defined with 14 realbits.
> > > However, the ADIS16201 datasheet states the resolution for these output
> > > channels is 12 bits (Page 14, text description; Page 15, table 7).
> > >
> > > Correct the realbits value to 12 to accurately reflect the hardware.
> > >
> > > Signed-off-by: Gabriel Shahrouzi <gshahrouzi@...il.com>
> > > ---
> > > Omit fixes tag because it targets driver before it moved out of staging.
> >
> > Why does that matter? Should have a fixes tag. Whether we chose
> > to backport the fix is a different matter.
> Ah ok, that makes sense.
> >
> > Otherwise looks fine to me. Reply to this thread with a fixes tag
> > and I can pick it up without needing a v2.
> Got it, will send shortly.
Request was just the fixes tag, not the whole patch again.
Ah well, never mind I can pick it up anyway.
Jonathan
> >
> >
> > > ---
> > > drivers/iio/accel/adis16201.c | 4 ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/iio/accel/adis16201.c b/drivers/iio/accel/adis16201.c
> > > index 982b33f6eccac..dcc8d9f2ee0f1 100644
> > > --- a/drivers/iio/accel/adis16201.c
> > > +++ b/drivers/iio/accel/adis16201.c
> > > @@ -211,9 +211,9 @@ static const struct iio_chan_spec adis16201_channels[] = {
> > > BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
> > > ADIS_AUX_ADC_CHAN(ADIS16201_AUX_ADC_REG, ADIS16201_SCAN_AUX_ADC, 0, 12),
> > > ADIS_INCLI_CHAN(X, ADIS16201_XINCL_OUT_REG, ADIS16201_SCAN_INCLI_X,
> > > - BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
> > > + BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 12),
> > > ADIS_INCLI_CHAN(Y, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y,
> > > - BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14),
> > > + BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 12),
> > > IIO_CHAN_SOFT_TIMESTAMP(7)
> > > };
> > >
> >
Powered by blists - more mailing lists