Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: accel: adxl380: fix raw sample read
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. Link: https://lore.kernel.org/lkml/20241101095202.20121-1-antoniu.miclaus@analog.com/ Fixes: 90a7580 ("iio: accel: add ADXL380 driver") Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
- Loading branch information