Skip to content

Commit 9cc80ff

Browse files
omn29ADESTM
authored andcommitted
iio: adc: stm32-dfsdm: fix single conversion
Apply data formatting to single conversion, as this is already done in continuous and trigger modes. Fixes: 102afde ("iio: adc: stm32-dfsdm: manage data resolution in trigger mode") Change-Id: Ief3dd068cf9eb95afa864bbde9e2c46629137f99 Signed-off-by: Olivier Moysan <olivier.moysan@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/142921 Reviewed-by: Fabrice GASNIER <fabrice.gasnier@st.com>
1 parent 1f974c5 commit 9cc80ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/adc/stm32-dfsdm-adc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,8 @@ static int stm32_dfsdm_single_conv(struct iio_dev *indio_dev,
12041204

12051205
stm32_dfsdm_stop_conv(adc);
12061206

1207+
stm32_dfsdm_process_data(adc, res);
1208+
12071209
stop_dfsdm:
12081210
stm32_dfsdm_stop_dfsdm(adc->dfsdm);
12091211

0 commit comments

Comments
 (0)