diff options
author | 2018-07-26 16:03:10 +0530 | |
---|---|---|
committer | 2018-07-27 15:16:55 -0700 | |
commit | 432121adf5e880240237bd9b15ec0ab995d7ea1f (patch) | |
tree | 2a4115a3bd6ad2ffc9f810b88d09c3252ef323bd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | thermal: tsens: switch from of_iomap() to devm_ioremap_resource() (diff) | |
download | wireguard-linux-432121adf5e880240237bd9b15ec0ab995d7ea1f.tar.xz wireguard-linux-432121adf5e880240237bd9b15ec0ab995d7ea1f.zip |
thermal: tsens: Fix negative temperature reporting
The current code will always return 0xffffffff in case of negative
temperatures due to a bug in how the binary sign extension is being done.
Use sign_extend32() instead.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions