public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH] iio: adis16201: Correct inclinometer channel resolution
@ 2025-04-19 14:45 Gabriel Shahrouzi
  2025-04-19 17:31 ` Marcelo Schmitt
  2025-04-21 11:49 ` Jonathan Cameron
  0 siblings, 2 replies; 13+ messages in thread
From: Gabriel Shahrouzi @ 2025-04-19 14:45 UTC (permalink / raw)
  To: jic23, lars, linux-iio, linux-kernel, Michael.Hennerich
  Cc: gshahrouzi, skhan, linux-kernel-mentees

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@gmail.com>
---
Omit fixes tag because it targets driver before it moved out of staging.
---
 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)
 };
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-04-21 14:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-19 14:45 [PATCH] iio: adis16201: Correct inclinometer channel resolution Gabriel Shahrouzi
2025-04-19 17:31 ` Marcelo Schmitt
2025-04-21 11:49 ` Jonathan Cameron
2025-04-21 13:05   ` Gabriel Shahrouzi
2025-04-21 13:58     ` Jonathan Cameron
2025-04-21 13:15   ` Gabriel Shahrouzi
2025-04-21 13:50     ` Marcelo Schmitt
2025-04-21 13:55       ` Gabriel Shahrouzi
2025-04-21 14:08         ` Marcelo Schmitt
2025-04-21 14:16           ` Gabriel Shahrouzi
2025-04-21 14:10         ` Jonathan Cameron
2025-04-21 13:59     ` Jonathan Cameron
2025-04-21 14:20       ` Gabriel Shahrouzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox