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/[email protected]/ Fixes: 90a7580 ("iio: accel: add ADXL380 driver") Signed-off-by: Antoniu Miclaus <[email protected]>
- Loading branch information