Skip to content

Commit

Permalink
iio: adc: stm32-dfsdm: fix single conversion
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/142921
Reviewed-by: Fabrice GASNIER <[email protected]>
  • Loading branch information
Olivier Moysan authored and ADESTM committed Sep 13, 2019
1 parent 1f974c5 commit 9cc80ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/adc/stm32-dfsdm-adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,8 @@ static int stm32_dfsdm_single_conv(struct iio_dev *indio_dev,

stm32_dfsdm_stop_conv(adc);

stm32_dfsdm_process_data(adc, res);

stop_dfsdm:
stm32_dfsdm_stop_dfsdm(adc->dfsdm);

Expand Down

0 comments on commit 9cc80ff

Please sign in to comment.