summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/iio_core.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-01-03 14:59:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-09 10:05:06 -0800
commit0a769a95334a8819da046f13c2ef8d8b344fc199 (patch)
tree0a53c6ddc9e3d1191833522b743d2c528ed40e56 /drivers/staging/iio/iio_core.h
parent16a39b7a9ccd81458e7e1799c1b213d1d590630c (diff)
downloadop-kernel-dev-0a769a95334a8819da046f13c2ef8d8b344fc199.zip
op-kernel-dev-0a769a95334a8819da046f13c2ef8d8b344fc199.tar.gz
staging:iio: Factor out event handling into its own file
The core iio file has gotten quite cluttered over time. This patch moves the event handling code into its own file. Since the event handling code is largely independent from the core code the only code changes necessary for this are to make the moved iio_device_register_eventset, iio_device_unregister_eventset and iio_event_getfd functions non static. This has also the advantage that industrialio-core.c is now closer again to its counterpart in the outofstaging branch. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/iio_core.h')
-rw-r--r--drivers/staging/iio/iio_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/iio/iio_core.h b/drivers/staging/iio/iio_core.h
index 107cfb1..c9dfcba 100644
--- a/drivers/staging/iio/iio_core.h
+++ b/drivers/staging/iio/iio_core.h
@@ -49,4 +49,8 @@ ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
#endif
+int iio_device_register_eventset(struct iio_dev *indio_dev);
+void iio_device_unregister_eventset(struct iio_dev *indio_dev);
+int iio_event_getfd(struct iio_dev *indio_dev);
+
#endif
OpenPOWER on IntegriCloud