iio: core: Introduce IIO software triggers
authorDaniel Baluta <daniel.baluta@intel.com>
Mon, 9 Nov 2015 07:14:00 +0000 (09:14 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 3 Dec 2015 18:19:27 +0000 (18:19 +0000)
commitb662f809d41009749a9ee6f9a4db3d9af579e171
tree0659aafbf7c3d51b871467f79f73f241f1e555cc
parent8261d961d1f397925d7a470864c14663d01ed714
iio: core: Introduce IIO software triggers

A software trigger associates an IIO device trigger with a software
interrupt source (e.g: timer, sysfs). This patch adds the generic
infrastructure for handling software triggers.

Software interrupts sources are kept in a iio_trigger_types_list and
registered separately when the associated kernel module is loaded.

Software triggers can be created directly from drivers or from user
space via configfs interface.

To sum up, this dynamically creates "triggers" group to be found under
/config/iio/triggers and offers the possibility of dynamically
creating trigger types groups. The first supported trigger type is
"hrtimer" found under /config/iio/triggers/hrtimer.

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/Kconfig
drivers/iio/Makefile
drivers/iio/industrialio-sw-trigger.c [new file with mode: 0644]
include/linux/iio/sw_trigger.h [new file with mode: 0644]
This page took 0.026852 seconds and 5 git commands to generate.