summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArka Mondal <arka@arkamondal.net>2026-09-18 21:20:29 +0900
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:37 +0100
commitebc026be1b719e47bd7f2f1e72fabc875b590f87 (patch)
tree7d1769bd37192f6f52d525057f219d1402cbb956 /tools/perf/scripts/python/stackcollapse.py
parent465bdce79a9fe140a4b46b95f6bdfd880d197148 (diff)
downloadlinux-next-ebc026be1b719e47bd7f2f1e72fabc875b590f87.tar.gz
linux-next-ebc026be1b719e47bd7f2f1e72fabc875b590f87.zip
iio: dac: ad5758: Reject out-of-range raw values
ad5758_write_raw() passes the value from userspace straight to ad5758_spi_reg_write(), which keeps only the low 16 bits. Writing -1 to the raw attribute gives full-scale output, and 65536 gives code 0. Return -EINVAL for values outside 0 to U16_MAX, as ad5755 does. 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