iio: adc: ad7476: Generate CONVST signal internally
authorDragos Bogdan <dragos.bogdan@analog.com>
Wed, 11 Mar 2020 08:43:25 +0000 (10:43 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 10:27:36 +0000 (10:27 +0000)
commitaf37e4703d00cea66e467ffe69afe2540fa32f75
tree0f4b5de509653ffe4bf4eb25e8bc1c095d3c1d5b
parent4be590e3f6ec402abe563db90afff6ce3c44737f
iio: adc: ad7476: Generate CONVST signal internally

Compared to the other supported parts, AD7091R are dependent of
a CONVST signal that initiates the conversion. At this moment, only
sampling in buffered mode is supported for AD7091R and the only
option until now was to generate this signal externally using an
IIO trigger. This patch adds the option of generating it internally,
more compatible triggers being available in this case.

Also, it is an intermediate step of adding support more devices.

Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7476.c