iio: adc: ad7606: Move oversampling and scale options to chip info
authorBeniamin Bia <beniamin.bia@analog.com>
Mon, 27 May 2019 12:56:47 +0000 (15:56 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Jun 2019 15:45:22 +0000 (16:45 +0100)
commit88dd03135063b0f60efda064f7ecccdef57b0634
treeab23c26e293892f0228e11a78caa98f93a84e439
parent47dd8378f953152944b651df92e5f2c7ebb6729c
iio: adc: ad7606: Move oversampling and scale options to chip info

The device dependent options which are going to be different for devices
which will be supported  in the future by this driver,
were moved in chip info for a more generic driver. This patch allows
supporting more devices by the driver. Also, it is an intermediate
step of adding support for ad7616 in software mode.

Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7606.h