diff options
author | Antoniu Miclaus <[email protected]> | 2024-11-01 11:52:01 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-11-01 15:24:01 +0000 |
commit | bfa335f18d91c52fa0f8ba3e4d49afebbd9ee792 (patch) | |
tree | 0a6a0b52ac7e72fb87ec1f8d887a92a029e6dd9c /tools/perf/scripts/python | |
parent | b7d2bc99b3bdc03fff9b416dd830632346d83530 (diff) |
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.
Fixes: df36de13677a ("iio: accel: add ADXL380 driver")
Signed-off-by: Antoniu Miclaus <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions