iio: adc: stm32-dfsdm: add fast mode support
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 19 Jun 2019 13:03:50 +0000 (15:03 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jun 2019 09:29:19 +0000 (10:29 +0100)
commitd716204fd5472631970aa927c773c3302ac70fbe
tree0b07c90fb8c8379810bf8e3e9333a1afba79cd4f
parent102afde62937de32758a023655ed90545c292245
iio: adc: stm32-dfsdm: add fast mode support

The use of fast mode allows to get a larger set of solution
for filter parameters. This can be useful to reach a better
output sample resolution, when fast mode can be used.

Fast mode is selected at startup if it is relevant.
The startup is performed in postenable callback context,
where there are too tight time constraints for filter parameters
computation. For this reason both fast and non fast filter parameters
are pre-computed previously.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-dfsdm-adc.c
drivers/iio/adc/stm32-dfsdm.h