[PATCH 0/2 V3] iio: adc: ad7124 fix wrong irq flag

From: Alexandru Tachici
Date: Mon Jan 13 2020 - 05:27:22 EST


Before these patches the ad7124 driver used a wrong irq flag
because it is using the ad-sigma-delta layer which hardcoded
the used irq flag. This caused an early read of the
data register when ad7124 was set on continous mode giving
a bad conversion.

This V3 series fixes the above explained unwanted behaviour.

1. Allow drivers to set their own irq flag for the iio
triggered buffer.

2. Set the right irq flag in the ad_sigma_delta_info
in ad7124 driver.

Alexandru Tachici (2):
iio: adc: ad-sigma-delta: Allow custom IRQ flags
iio: adc: ad7124: Set IRQ type to falling

drivers/iio/adc/ad7124.c | 2 ++
drivers/iio/adc/ad7780.c | 1 +
drivers/iio/adc/ad7791.c | 1 +
drivers/iio/adc/ad7793.c | 1 +
drivers/iio/adc/ad_sigma_delta.c | 2 +-
include/linux/iio/adc/ad_sigma_delta.h | 2 ++
6 files changed, 8 insertions(+), 1 deletion(-)

--
2.20.1