summaryrefslogtreecommitdiffstats
path: root/drivers/iio/iio_core.h
diff options
context:
space:
mode:
authorYannick Brosseau <yannick.brosseau@gmail.com>2022-05-16 16:39:38 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-19 17:22:48 +0100
commitd2214cca4d3eadc74eac9e30301ec7cad5355f00 (patch)
tree0e52b2d48111cb9dd016628468c0d21646679b18 /drivers/iio/iio_core.h
parent47dcf770abc793f347a65a24c24d550c936f08b0 (diff)
downloadlinux-d2214cca4d3eadc74eac9e30301ec7cad5355f00.tar.bz2
iio: adc: stm32: Fix ADCs iteration in irq handler
The irq handler was only checking the mask for the first ADCs in the case of the F4 and H7 generation, since it was iterating up to the num_irq value. This patch add the maximum number of ADC in the common register, which map to the number of entries of eoc_msk and ovr_msk in stm32_adc_common_regs. This allow the handler to check all ADCs in that module. Tested on a STM32F429NIH6. Fixes: 695e2f5c289b ("iio: adc: stm32-adc: fix a regression when using dma and irq") Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com> Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20220516203939.3498673-2-yannick.brosseau@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/iio_core.h')
0 files changed, 0 insertions, 0 deletions