]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ad7780: define/use own IIO channel macros
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Sat, 21 Mar 2020 09:07:58 +0000 (11:07 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:10 +0000 (16:56 +0100)
commit8c4fc1d5d6b83fbb5700114e6e481245ca97f86b
tree5e3b0aae7a5ea4fe7b0bc8a91b256aee37c3cede
parent5e99e038115a603f3e7e1f9d7aa08e21a98a9cc3
iio: adc: ad7780: define/use own IIO channel macros

This change gets rid of the AD_SD_*_CHANNEL macros in favor of defining
it's own. The ad7780 is quite simpler than it's other Sigma-Delta brothers.

It turned out that centralizing the AD_SD_*_CHANNEL macros doesn't scale
too well, especially with some more complicated drivers. Some of the
variations in the more complicated drivers require new macros, and that way
things can become harder to maintain.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7780.c