aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@baylibre.com>2024-10-25 12:59:37 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-28 20:04:10 +0000
commit97c6d857041dbde42061bef4a6cad2058b0153ed (patch)
tree73fb750e51550dc5cd7e3646e367713d97a2337c /tools/perf/scripts/python
parentiio: adc: ad7606: use realbits for sign-extending in scan_direct (diff)
downloadlinux-97c6d857041dbde42061bef4a6cad2058b0153ed.tar.gz
linux-97c6d857041dbde42061bef4a6cad2058b0153ed.zip
iio: adc: ad7606: rework scale-available to be static
The main driver for this change is the AD7607 part, which has a scale of "1.220703" for the ±10V range. The AD7607 has a resolution of 14-bits. So, just adding the scale-available list for that part would require some quirks to handle just that scale value. But to do it more neatly, the best approach is to rework the scale available lists to have the same format as it is returned to userspace. That way, we can also get rid of the allocation for the 'scale_avail_show' array. Signed-off-by: Alexandru Ardelean <aardelean@baylibre.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20241025095939.271811-4-aardelean@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions