Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c278609b authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Jonathan Cameron
Browse files

iio: adc: stm32-dfsdm: fix call to stop channel



stm32_dfsdm_stop_channel must be called with channel id, not filter id.

Fixes: e2e6771c ("IIO: ADC: add STM32 DFSDM sigma delta ADC support")

Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4e4f9fbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ static int stm32_dfsdm_start_conv(struct stm32_dfsdm_adc *adc, bool dma)

	regmap_update_bits(regmap, DFSDM_CR1(adc->fl_id),
			   DFSDM_CR1_RCONT_MASK, 0);
	stm32_dfsdm_stop_channel(adc->dfsdm, adc->fl_id);
	stm32_dfsdm_stop_channel(adc->dfsdm, adc->ch_id);

	return ret;
}