Staging: IIO: Trigger support added to core.
commit1637db44413e32a0f100dd4bd164644e641842f7
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 18 Aug 2009 17:06:26 +0000 (18 18:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:25 +0000 (15 12:02 -0700)
tree112d2671204259195dff3b8f021fe33ed8ca6afe
parent574fb258d63658e4564c32c1940068a3bad666a0
Staging: IIO: Trigger support added to core.

Add general registration support for IIO triggers.  These
are currently only used to initialize a 'poll' of a given
device.  Examples include the lis3l02dq's data ready signal
being used to initialize a read and gpio triggers being
used to allow externally synchronized sensor reading.

Each trigger can cause any number of 'consumer' devices
to be polled with each storing data into a related ring
buffer.

Two stage triggering is supported with 'fast' and 'slow'
paths.  The first is used for things like pulling a data
hold line high and the second for actual read which
may take far longer.

Changes since V2:
* As with IIO triggers now use a registration approach
  much closer to that of input leading to cleaner code.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Kconfig
drivers/staging/iio/Makefile
drivers/staging/iio/industrialio-trigger.c [new file with mode: 0644]
drivers/staging/iio/trigger.h [new file with mode: 0644]
drivers/staging/iio/trigger_consumer.h