iio: imu: st_lsm6dsx: support active-low interrupts
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Wed, 7 Jun 2017 18:17:10 +0000 (20:17 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:07:36 +0000 (15:07 +0100)
commit89ca88a7cdf20f4afb841c296f2234b527a5c54a
treef2c7c640ac4e2690bc043323ad6f9a25351b87dd
parent405570b4a5c9402f66843be832e44c2ffd70aa01
iio: imu: st_lsm6dsx: support active-low interrupts

Add support for active low interrupts (IRQF_TRIGGER_LOW and
IRQF_TRIGGER_FALLING). Configure the device as active high or low
according to the requested irq line.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c