summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorVasileios Amoiridis <vassilisamir@gmail.com>2024-06-28 19:17:24 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-08-03 10:13:36 +0100
commit74353ceb3533ff1bcef1645cdab549d1a7dfaa22 (patch)
tree12e14913171cc25ba18a32df99573f0a48fcb700 /tools/perf/scripts/python/bin
parent7c7d9170305435f5c6f9fac3174118e81fc8178d (diff)
downloadlinux-74353ceb3533ff1bcef1645cdab549d1a7dfaa22.tar.gz
linux-74353ceb3533ff1bcef1645cdab549d1a7dfaa22.zip
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 <vassilisamir@gmail.com> Acked-by: Adam Rizkalla <ajarizzo@gmail.com> Link: https://patch.msgid.link/20240628171726.124852-2-vassilisamir@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions