iio: imu: st_lsm6dsx: enable clear on read for latched interrupts
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 11 Sep 2019 06:50:04 +0000 (08:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Sep 2019 11:02:28 +0000 (12:02 +0100)
commit22ea565110731e48d9434d029df4f62c94df0a89
treeadfb3e30c894ad739eb3422127b4375cc341081a
parent9db02d32b8eedb4441f79cb2a1696344060c1b78
iio: imu: st_lsm6dsx: enable clear on read for latched interrupts

Enable clear on read feature for latched interrupts. This bit allows
immediately clearing the latched interrupts of an event detection upon
the read of the corresponding status register.
It must be set to 1 together with LIR.
This feature is available just on LSM6DS0/LSM6DSR/ASM330LHH

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c