iio: accel: bma400: Add support for activity and inactivity events
authorJagath Jog J <jagathjog1996@gmail.com>
Thu, 5 May 2022 13:30:19 +0000 (19:00 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Jun 2022 13:35:26 +0000 (14:35 +0100)
commit3cf122c20bf835b53e8d2074611d68b7822be782
tree48859a320a8ae396b46922c5d082ff58cb4c7706
parent00ee658ff58177fccfc4d80e611f31884f8a16c4
iio: accel: bma400: Add support for activity and inactivity events

Add support for activity and inactivity events for all axis based on the
threshold, duration and hysteresis value set from the userspace. INT1 pin
is used to interrupt and event is pushed to userspace.

Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
Link: https://lore.kernel.org/r/20220505133021.22362-9-jagathjog1996@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma400.h
drivers/iio/accel/bma400_core.c