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: 12ed27863e 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>
This commit is contained in:
Valek Andrej
2026-03-22 11:43:00 +00:00
committed by Jonathan Cameron
parent fdc7aa54a5
commit 4f51e6c0ba
+1 -1
View File
@@ -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,