diff options
| author | Thomas Haemmerle <[email protected]> | 2024-04-15 12:50:27 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-04-20 14:53:01 +0100 |
| commit | 9dd6b32e76ff714308964cd9ec91466a343dcb8b (patch) | |
| tree | 6641463b6763a878a9f8725094e55c3d31b91f7a /tools/perf/scripts/python | |
| parent | 499eb311513fa30e136d01abfb316c482379afa1 (diff) | |
iio: pressure: dps310: support negative temperature values
The current implementation interprets negative values returned from
`dps310_calculate_temp` as error codes.
This has a side effect that when negative temperature values are
calculated, they are interpreted as error.
Fix this by using the return value only for error handling and passing a
pointer for the value.
Fixes: ba6ec48e76bc ("iio: Add driver for Infineon DPS310")
Signed-off-by: Thomas Haemmerle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions