iio: add hardware triggered operating mode
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Thu, 27 Apr 2017 13:29:15 +0000 (15:29 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:58:41 +0000 (15:58 +0100)
commitd89e119a088ec83881eda5645307ae252ecea33a
tree2e16f03c91a46897dedacb2ecffa9c3e9830d65b
parent4e36a8ad4d69fbb52f0f07d9ff340cd6a7a2a503
iio: add hardware triggered operating mode

Devices, like stm32 timer, could be triggered by hardware events which
are not buffer or software events. However it could be necessary to
validate the triggers like it is done for buffer or event triggered modes.
This patch add a new INDIO_HARDWARE_TRIGGERED operating mode for this
kind of devices and allow this mode to register trigger consumer.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
include/linux/iio/iio.h