summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorValek Andrej <andrej.v@skyrain.eu>2026-03-13 10:24:13 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-22 11:43:00 +0000
commit4f51e6c0baae80e52bd013092e82a55678be31fc (patch)
tree55230763945dde8c056f3705a48e48c2e29fbe90 /drivers
parentfdc7aa54a5d44c05880a4aad7cfb41aacfd16d7b (diff)
iio: accel: fix ADXL355 temperature signature value
Temperature was wrongly represented as 12-bit signed, confirmed by checking the datasheet. Even if the temperature is negative, the value in the register stays unsigned. Fixes: 12ed27863ea3 iio: accel: Add driver support for ADXL355 Signed-off-by: Valek Andrej <andrej.v@skyrain.eu> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/accel/adxl355_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/adxl355_core.c b/drivers/iio/accel/adxl355_core.c
index 1c1d64d5cbcb..8f90c58f4100 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,