Files
twx-linux/drivers/iio/accel
Antoniu Miclaus c41dba28df iio: accel: adxl380: fix raw sample read
[ Upstream commit bfa335f18d ]

The adxl380_read_chn function returns either a negative value in case an
error occurs or the actual sample.

Check only for negative values after a channel is read.

Fixes: df36de1367 ("iio: accel: add ADXL380 driver")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://patch.msgid.link/20241101095202.20121-1-antoniu.miclaus@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-05 14:02:37 +01:00
..
2024-08-03 10:13:36 +01:00
2024-08-03 10:13:36 +01:00
2024-08-03 10:13:36 +01:00
2024-08-03 10:13:36 +01:00