commit | 893ac1a02b19b7a42681f7cfb760dedb3d1611ab | [log] [tgz] |
---|---|---|
author | Alexandru Tachici <alexandru.tachici@analog.com> | Wed Feb 12 18:17:18 2020 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Mar 08 17:28:32 2020 +0000 |
tree | 07ad0149d651b1fb5a0f94e1068c52ea101ac1aa | |
parent | ab0afa65bbc7eee9a4f5d864781e949820e0aa2c [diff] |
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>