staging: iio: adc: ad7192: modify iio_chan_spec array
authorAlexandru Tachici <alexandru.tachici@analog.com>
Wed, 12 Feb 2020 16:17:18 +0000 (18:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:32 +0000 (17:28 +0000)
commit893ac1a02b19b7a42681f7cfb760dedb3d1611ab
tree07ad0149d651b1fb5a0f94e1068c52ea101ac1aa
parentab0afa65bbc7eee9a4f5d864781e949820e0aa2c
staging: iio: adc: ad7192: modify iio_chan_spec array

This patch changes the static const struct iio_chan_spec arrays
in a way that all the necessary attributes are set at
compile time. Now ad7192_channels_config only makes the
channels attribute of iio_dev point to the right array depending
on the chip.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7192.c