aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@baylibre.com>2024-10-25 12:59:36 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-28 20:04:10 +0000
commit0fb11344bb21bc63821f45d0953b2da8cf1ff4f8 (patch)
tree9e1251574269145bca729bc9e5781b7568781b4b /tools/perf/scripts/python
parentiio: adc: ad7606: fix/persist oversampling_ratio setting (diff)
downloadlinux-0fb11344bb21bc63821f45d0953b2da8cf1ff4f8.tar.gz
linux-0fb11344bb21bc63821f45d0953b2da8cf1ff4f8.zip
iio: adc: ad7606: use realbits for sign-extending in scan_direct
Currently the 'ad7606' driver supports parts with 18 and 16 bits resolutions. But when adding support for AD7607 (which has a 14-bit resolution) we should check for the 'realbits' field, to be able to sign-extend correctly. Signed-off-by: Alexandru Ardelean <aardelean@baylibre.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20241025095939.271811-3-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