[PATCH 2/2] iio: adc: stm32-dfsdm: fix sample rate for div2 spi clock

2018-03-13 Thread Fabrice Gasnier
When channel clk source is set to "CLKOUT_F" or "CLKOUT_R" (e.g. div2), sample rate is currently set to half the requested value. Fixes: eca949800d2d ("IIO: ADC: add stm32 DFSDM support for PDM microphone") Signed-off-by: Fabrice Gasnier ---

[PATCH 2/2] iio: adc: stm32-dfsdm: fix sample rate for div2 spi clock

2018-03-13 Thread Fabrice Gasnier
When channel clk source is set to "CLKOUT_F" or "CLKOUT_R" (e.g. div2), sample rate is currently set to half the requested value. Fixes: eca949800d2d ("IIO: ADC: add stm32 DFSDM support for PDM microphone") Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-dfsdm-adc.c | 14