aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/dummy/iio_dummy_evgen.h
diff options
context:
space:
mode:
authorCristina Opriceana2015-10-09 16:31:28 +0300
committerJonathan Cameron2015-10-25 12:33:01 +0000
commit415f792447572ef1949a3cef5119bbce8cc66373 (patch)
tree343fd0cd479ed2962d02bca228e153f845efebe9 /drivers/iio/dummy/iio_dummy_evgen.h
parentf0b1643581b376ebd97a0068cbc3d146d6abdff1 (diff)
iio: Move IIO Dummy Driver out of staging
This patch moves the reference IIO dummy driver from drivers/staging/iio into a separate folder, drivers/iio/dummy and adds the proper Kconfig and Makefile for it. A new config menu entry called IIO dummy driver has also been added in the Industrial I/O support menu, corresponding to this driver. Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dummy/iio_dummy_evgen.h')
-rw-r--r--drivers/iio/dummy/iio_dummy_evgen.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/iio/dummy/iio_dummy_evgen.h b/drivers/iio/dummy/iio_dummy_evgen.h
new file mode 100644
index 000000000000..d044b946e74a
--- /dev/null
+++ b/drivers/iio/dummy/iio_dummy_evgen.h
@@ -0,0 +1,13 @@
+#ifndef _IIO_DUMMY_EVGEN_H_
+#define _IIO_DUMMY_EVGEN_H_
+
+struct iio_dummy_regs {
+ u32 reg_id;
+ u32 reg_data;
+};
+
+struct iio_dummy_regs *iio_dummy_evgen_get_regs(int irq);
+int iio_dummy_evgen_get_irq(void);
+void iio_dummy_evgen_release_irq(int irq);
+
+#endif /* _IIO_DUMMY_EVGEN_H_ */