summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArka Mondal <arka@arkamondal.net>2026-10-07 00:32:10 +0900
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:38:53 +0000
commita6cae12024949f19b0b0a7296ea4bc52be2d5b38 (patch)
treeefd858dfa7e6f7f4c451e12e624f077e364fa94d /tools/perf/scripts/python
parent9253a88b28d4ff6b70c015838e516fc385047dd5 (diff)
iio: dac: ad5758: Fix the 4 mA to 20 mA current range
Range code 1010 selects 4 mA to 20 mA (data sheet Rev. B, Table 32), but the driver describes it as 4 uA to 24 mA. With the reported scale and offset, userspace converts raw code 0 to about 0 mA instead of 4 mA, and full scale to about 23 mA instead of 20 mA. Describe the range as 4000 to 20000 uA and rename the enum entry to match. A device tree that still has <4 24000> no longer matches any entry in the table, so probe fails with "range invalid". 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')
0 files changed, 0 insertions, 0 deletions