summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-11-02 22:38:59 -0700
committerGuenter Roeck <linux@roeck-us.net>2022-07-13 08:38:17 -0700
commita8ddcc5750a94527ceead3de59f1f6ebc3e58115 (patch)
treeeba51bc18d018093d65f4990cac58bde1c3590af /tools/perf/scripts/python/export-to-postgresql.py
parent8f19501d87e0e79a50b60ead7e114ed5a8eea34e (diff)
hwmon: (lm90) Support multiple temperature resolutions
While most LM90 compatible chips support a temperature sensor resolution of 11 bit, this is not the case for all chips. ADT7461 only supports a resolution of 10 bit, and TMP451/TMP461 support a resolution of 12 bit. Add support for various temperature sensor resolutions. To do this, model all temperature sensors as 16 bit sensors, and use unified temperature conversion functions which take the sensor resolution as parameter. While enhancing functionality, this has the positive side effect of reducing code size by about 5%. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions