iio: imu: adis: Add irq flag variable
authorNuno Sá <nuno.sa@analog.com>
Mon, 13 Apr 2020 08:24:41 +0000 (10:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 15:09:30 +0000 (16:09 +0100)
commit698211065d4aa71ce599b38c23452664a5a8e370
tree2673062f1e2b178ad31d061a1bdad97da88ce0ee
parentfec86c6b8369b5dd8e3a1ad3752578a737163b25
iio: imu: adis: Add irq flag variable

There are some ADIS devices that can configure the data ready pin
polarity. Hence, we cannot hardcode our IRQ mask as IRQF_TRIGGER_RISING
since we might want to have it as IRQF_TRIGGER_FALLING.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis_trigger.c
include/linux/iio/imu/adis.h