aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/adc/ad7791.c
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2023-01-20 13:46:45 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-02-18 17:06:09 +0000
commit0c6ef985a1fd8a74dcb5cad941ddcadd55cb8697 (patch)
tree41a281d5b66a41b4bc2cd0578729733d6d43601e /drivers/iio/adc/ad7791.c
parentiio: buffer: make sure O_NONBLOCK is respected (diff)
downloadwireguard-linux-0c6ef985a1fd8a74dcb5cad941ddcadd55cb8697.tar.xz
wireguard-linux-0c6ef985a1fd8a74dcb5cad941ddcadd55cb8697.zip
iio: adc: ad7791: fix IRQ flags
The interrupt is triggered on the falling edge rather than being a level low interrupt. Fixes: da4d3d6bb9f6 ("iio: adc: ad-sigma-delta: Allow custom IRQ flags") Signed-off-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20230120124645.819910-1-nuno.sa@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ad7791.c')
-rw-r--r--drivers/iio/adc/ad7791.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad7791.c b/drivers/iio/adc/ad7791.c
index fee8d129a5f0..86effe8501b4 100644
--- a/drivers/iio/adc/ad7791.c
+++ b/drivers/iio/adc/ad7791.c
@@ -253,7 +253,7 @@ static const struct ad_sigma_delta_info ad7791_sigma_delta_info = {
.has_registers = true,
.addr_shift = 4,
.read_mask = BIT(3),
- .irq_flags = IRQF_TRIGGER_LOW,
+ .irq_flags = IRQF_TRIGGER_FALLING,
};
static int ad7791_read_raw(struct iio_dev *indio_dev,