summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-07-04 11:25:23 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-07-29 20:31:11 +0100
commitb92f94f7482697e94f06ec483b7b4cfcc41e7497 (patch)
treeee231684fe817be94dc9af1e3168e4904ad02551 /tools/perf/scripts/python
parentbdc87f98cab780a6edfa658f20d9f95ad7e7efea (diff)
downloadlinux-b92f94f7482697e94f06ec483b7b4cfcc41e7497.tar.gz
linux-b92f94f7482697e94f06ec483b7b4cfcc41e7497.zip
iio: adc: ad9467: don't allow reading vref if not available
If there's only one possible scale, there's no way to change the Vref select in the device so avoid reading the register in ad9467_get_scale(). In this case, it makes no sense to provide the .read_available() callback nor allowing for writing the scale attribute. Note this is in preparation for supporting a new device that only has one possible scale. Signed-off-by: Nuno Sa <nuno.sa@analog.com> Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-3-f1adfee921f7@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions