]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1a451c35c1b507cf637de382e919ebc26fbf854
tree2673062f1e2b178ad31d061a1bdad97da88ce0ee
parentff8a6b69d7d80f10c2e2c0b616ac74a458d2bbdd
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