summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-07-04 12:25:23 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-07-29 22:31:11 +0300
commitb92f94f7482697e94f06ec483b7b4cfcc41e7497 (patch)
treeee231684fe817be94dc9af1e3168e4904ad02551 /include/linux
parentbdc87f98cab780a6edfa658f20d9f95ad7e7efea (diff)
downloadlinux-b92f94f7482697e94f06ec483b7b4cfcc41e7497.tar.xz
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 'include/linux')
0 files changed, 0 insertions, 0 deletions