OSDN Git Service

iio: core: Introduce CHANGE event type
authorIrina Tirdea <irina.tirdea@intel.com>
Sun, 11 Jan 2015 19:10:11 +0000 (21:10 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 27 Jan 2015 18:49:55 +0000 (18:49 +0000)
commit27be84236d75c13a83c45d850390f40b58401d97
treead80b4543ccd8e386dcc23662375330a55192990
parentd37f6836fa285882450e28d1cbc5a9b624911e7e
iio: core: Introduce CHANGE event type

A step detector will generate an interrupt each time N step are detected.
A device that has such pedometer functionality is Freescale's MMA9553L:
http://www.freescale.com/files/sensors/doc/ref_manual/MMA9553LSWRM.pdf.

Introduce IIO_EV_TYPE_CHANGE event type for events that are generated
when the channel passes a threshold on the absolute change in value.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/ABI/testing/sysfs-bus-iio
drivers/iio/industrialio-event.c
drivers/staging/iio/Documentation/iio_event_monitor.c
include/linux/iio/types.h