summaryrefslogtreecommitdiff
path: root/drivers/dio
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-09-24 11:05:15 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-09-29 19:27:07 +0300
commit337dbb6ec1acc2e0c7f16b08ddd670faf204fcc8 (patch)
tree34b508af2266a94cfe5ef12c4d215409b64709fa /drivers/dio
parent25918a9c641c3c73ae94354605860c06fd73a05e (diff)
downloadlinux-337dbb6ec1acc2e0c7f16b08ddd670faf204fcc8.tar.xz
iio: adc: ad9467: wrap a axi-adc chip-info into a ad9467_chip_info type
There are 2 chip constants that can be added to the chip-info part. The default output-mode and the VREF mask. When adding new chips to this driver, these can be easily omitted, because these also need to be updated in 2 switch statements. However, if adding them in the chip-info constants, they are updated in a single place and propagated in both switch statements. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20200924080518.96410-2-alexandru.ardelean@analog.com
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions