summaryrefslogtreecommitdiff
path: root/include/linux/iio/driver.h
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-04-25 18:54:58 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 22:01:43 +0400
commit06458e277eac2b8761b0a04d3c808d57be281a2e (patch)
treecba55bcbdd101a3ab84bfe27fccdb9efd18d757e /include/linux/iio/driver.h
parent68284a12923f9f8f2741efca10c045e179f2e753 (diff)
downloadlinux-06458e277eac2b8761b0a04d3c808d57be281a2e.tar.xz
IIO: Move core headers to include/linux/iio
Step 1 in moving the IIO core out of staging. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/iio/driver.h')
-rw-r--r--include/linux/iio/driver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/iio/driver.h b/include/linux/iio/driver.h
new file mode 100644
index 000000000000..a4f8b2e05af5
--- /dev/null
+++ b/include/linux/iio/driver.h
@@ -0,0 +1,34 @@
+/*
+ * Industrial I/O in kernel access map interface.
+ *
+ * Copyright (c) 2011 Jonathan Cameron
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ */
+
+#ifndef _IIO_INKERN_H_
+#define _IIO_INKERN_H_
+
+struct iio_map;
+
+/**
+ * iio_map_array_register() - tell the core about inkernel consumers
+ * @indio_dev: provider device
+ * @map: array of mappings specifying association of channel with client
+ */
+int iio_map_array_register(struct iio_dev *indio_dev,
+ struct iio_map *map);
+
+/**
+ * iio_map_array_unregister() - tell the core to remove consumer mappings
+ * @indio_dev: provider device
+ * @map: array of mappings to remove. Note these must have same memory
+ * addresses as those originally added not just equal parameter
+ * values.
+ */
+int iio_map_array_unregister(struct iio_dev *indio_dev,
+ struct iio_map *map);
+
+#endif