]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4636e8931c0333f856d0ba9a7b5128c86dcffbde
tree67c88a4c1c0480ec4ef5d05cf295e32c9695b3c5
parent3d637b27440fa182e2ac4b1b778e084c4830be15
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