public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: accel: fix ADXL355 temperature signature value
@ 2026-03-13  9:24 Andrej Valek
  2026-03-14 20:22 ` David Lechner
  0 siblings, 1 reply; 5+ messages in thread
From: Andrej Valek @ 2026-03-13  9:24 UTC (permalink / raw)
  To: linux-iio
  Cc: Valek Andrej, lars, Michael.Hennerich, puranjay, jonathan.cameron,
	dlechner

From: "Valek Andrej <andrej.v@skyrain.eu>"

Temperature was wrongly represented as 12-bit signature, confirmed by DS.
Even if the temperature is negative, the value in the register stays
unsigned.

Signed-off-by: Valek Andrej <andrej.v@skyrain.eu>
---
 drivers/iio/accel/adxl355_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/accel/adxl355_core.c b/drivers/iio/accel/adxl355_core.c
index 1c1d64d5cbcb2..8f90c58f41008 100644
--- a/drivers/iio/accel/adxl355_core.c
+++ b/drivers/iio/accel/adxl355_core.c
@@ -745,7 +745,7 @@ static const struct iio_chan_spec adxl355_channels[] = {
 				      BIT(IIO_CHAN_INFO_OFFSET),
 		.scan_index = 3,
 		.scan_type = {
-			.sign = 's',
+			.sign = 'u',
 			.realbits = 12,
 			.storagebits = 16,
 			.endianness = IIO_BE,
-- 
2.34.1


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

end of thread, other threads:[~2026-03-22 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13  9:24 [PATCH] iio: accel: fix ADXL355 temperature signature value Andrej Valek
2026-03-14 20:22 ` David Lechner
2026-03-15 15:35   ` Andrej Valek
2026-03-15 16:18     ` David Lechner
2026-03-22 11:44       ` Jonathan Cameron

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