]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08ad3af628afb085c991bccf8d441e04149db97e
tree07ad0149d651b1fb5a0f94e1068c52ea101ac1aa
parent5b8dbc54e3b432e88ab8b158a831c89a25c02b89
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