diff options
| author | Vasileios Amoiridis <[email protected]> | 2024-06-28 19:17:24 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-08-03 10:13:36 +0100 |
| commit | 74353ceb3533ff1bcef1645cdab549d1a7dfaa22 (patch) | |
| tree | 12e14913171cc25ba18a32df99573f0a48fcb700 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 7c7d9170305435f5c6f9fac3174118e81fc8178d (diff) | |
iio: pressure: bmp280: Generalize read_*() functions
Add the coefficients for the IIO standard units and the IIO value
inside the chip_info structure.
Move the calculations for the IIO unit compatibility from inside the
read_{temp,press,humid}() functions and move them to the general
read_raw() function.
In this way, all the data for the calculation of the value are
located in the chip_info structure of the respective sensor.
Signed-off-by: Vasileios Amoiridis <[email protected]>
Acked-by: Adam Rizkalla <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions