summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArka Mondal <arka@arkamondal.net>2026-09-18 21:20:30 +0900
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:37 +0100
commita3b3580713f3ac5a32dc2874ee546828977a1d68 (patch)
tree5fbf946ff912b474aae6c7f021ae87a7e740f027 /tools/perf/scripts/python/stackcollapse.py
parentebc026be1b719e47bd7f2f1e72fabc875b590f87 (diff)
downloadlinux-next-a3b3580713f3ac5a32dc2874ee546828977a1d68.tar.gz
linux-next-a3b3580713f3ac5a32dc2874ee546828977a1d68.zip
iio: dac: ad5758: Fix the offset calculation
The offset is a count of DAC codes, so the microamp or microvolt units of min and max cancel out and the final division by 1000 is wrong. For the +-20 mA range the driver reports -32 instead of -32768. For the +-5 V and +-10 V ranges min * (1 << 16) also overflows int, and the reported offset is 0. Drop the division and do the multiplication in 64 bits. Fixes: 28d1a7ac2a0d ("iio: dac: Add AD5758 support") Signed-off-by: Arka Mondal <arka@arkamondal.net> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions