iio: accel: bma400: Add support for single and double tap events
authorJagath Jog J <jagathjog1996@gmail.com>
Wed, 31 Aug 2022 06:31:17 +0000 (12:01 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Sep 2022 17:08:42 +0000 (18:08 +0100)
commit961db2da159d5191d2a1d9a7cf5ddf1672621a2b
tree67c88a4c1c0480ec4ef5d05cf295e32c9695b3c5
parent835e699ef82adfc85ac4cc3f1f237c1adfdefd20
iio: accel: bma400: Add support for single and double tap events

Add support for single and double tap events based on the tap threshold
value, minimum quiet time before and after the tap and minimum time
between the taps in the double tap. The INT1 pin is used to interrupt
and the event is pushed to userspace.

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