aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorDimitri Fedrau <[email protected]>2024-04-24 20:59:10 +0200
committerJonathan Cameron <[email protected]>2024-05-03 11:48:56 +0100
commit827dca3129708a8465bde90c86c2e3c38e62dd4f (patch)
tree04274c6c1e843e6b07de683cacc3dc405931d2ac /tools/perf/scripts/python/net_dropmonitor.py
parent51fafb3cd7fcf4f4682693b4d2883e2a5bfffe33 (diff)
iio: temperature: mcp9600: Fix temperature reading for negative values
Temperature is stored as 16bit value in two's complement format. Current implementation ignores the sign bit. Make it aware of the sign bit by using sign_extend32. Fixes: 3f6b9598b6df ("iio: temperature: Add MCP9600 thermocouple EMF converter") Signed-off-by: Dimitri Fedrau <[email protected]> Reviewed-by: Marcelo Schmitt <[email protected]> Tested-by: Andrew Hepp <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions