Skip to content

Commit 0c6ef98

Browse files
nunojsajic23
authored andcommitted
iio: adc: ad7791: fix IRQ flags
The interrupt is triggered on the falling edge rather than being a level low interrupt. Fixes: da4d3d6 ("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>
1 parent 3da1814 commit 0c6ef98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ad7791.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static const struct ad_sigma_delta_info ad7791_sigma_delta_info = {
253253
.has_registers = true,
254254
.addr_shift = 4,
255255
.read_mask = BIT(3),
256-
.irq_flags = IRQF_TRIGGER_LOW,
256+
.irq_flags = IRQF_TRIGGER_FALLING,
257257
};
258258

259259
static int ad7791_read_raw(struct iio_dev *indio_dev,

0 commit comments

Comments
 (0)