iio: Add new event type gesture and use direction for single and double tap
authorJagath Jog J <jagathjog1996@gmail.com>
Wed, 31 Aug 2022 06:31:16 +0000 (12:01 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Sep 2022 17:08:42 +0000 (18:08 +0100)
commit835e699ef82adfc85ac4cc3f1f237c1adfdefd20
tree4d61088ee9755c35e20a7a89c5d2a807b6917d18
parent2bc9cd66eb25d0fefbb081421d6586495e25840e
iio: Add new event type gesture and use direction for single and double tap

Add new event type for tap called gesture and the direction can be used
to differentiate single and double tap. This may be used by accelerometer
sensors to express single and double tap events. For directional tap,
modifiers like IIO_MOD_(X/Y/Z) can be used along with singletap and
doubletap direction.

Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
Link: https://lore.kernel.org/r/20220831063117.4141-2-jagathjog1996@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-event.c
include/linux/iio/types.h
include/uapi/linux/iio/types.h
tools/iio/iio_event_monitor.c