]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: ad7124: Set IRQ type to falling
authorAlexandru Tachici <alexandru.tachici@analog.com>
Mon, 13 Jan 2020 10:26:53 +0000 (12:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Jan 2020 11:43:16 +0000 (11:43 +0000)
commit79ef91493f5494e9ddbad85bf571ec03940a7f5c
tree7b873ff44fa37fe3cc3e608992ca2d0b914d9459
parentda4d3d6bb9f6047217d549c233303161bb4678d9
iio: adc: ad7124: Set IRQ type to falling

Ad7124 data-sheet specifies that the falling edge
of the DOUT line should be used for an interrupt.
The current irq flag (IRQF_TRIGGER_LOW) used will
cause unwanted behaviour. When enabling the interrupt
it will fire once because the DOUT line is already low.
This will make the driver to read an unfinished conversion
from the chip.

This patch sets the irq type to the one specified in
the data-sheet.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c