iio: adc: ad9467: wrap a axi-adc chip-info into a ad9467_chip_info type
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 24 Sep 2020 08:05:15 +0000 (11:05 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 29 Sep 2020 16:27:07 +0000 (17:27 +0100)
commit337dbb6ec1acc2e0c7f16b08ddd670faf204fcc8
tree34b508af2266a94cfe5ef12c4d215409b64709fa
parent25918a9c641c3c73ae94354605860c06fd73a05e
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
drivers/iio/adc/ad9467.c