diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-04-25 10:54:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-25 14:11:38 -0400 |
commit | a980e046098b0a40eaff5e4e7fcde6cf035b7c06 (patch) | |
tree | 23375fc2bba39f088974cf621f7abf006d43d087 /drivers/iio/iio_core_trigger.h | |
parent | 06458e277eac2b8761b0a04d3c808d57be281a2e (diff) |
IIO: Move the core files to drivers/iio
Take the core support + the kfifo buffer implentation out of
staging. Whilst we are far from done in improving this subsystem
it is now at a stage where the userspae interfaces (provided by
the core) can be considered stable.
Drivers will follow over a longer time scale.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/iio_core_trigger.h')
-rw-r--r-- | drivers/iio/iio_core_trigger.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/iio/iio_core_trigger.h b/drivers/iio/iio_core_trigger.h new file mode 100644 index 000000000000..6f7c56fcbe78 --- /dev/null +++ b/drivers/iio/iio_core_trigger.h | |||
@@ -0,0 +1,46 @@ | |||
1 | |||
2 | /* The industrial I/O core, trigger consumer handling functions | ||
3 | * | ||
4 | * Copyright (c) 2008 Jonathan Cameron | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published by | ||
8 | * the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifdef CONFIG_IIO_TRIGGER | ||
12 | /** | ||
13 | * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers | ||
14 | * @indio_dev: iio_dev associated with the device that will consume the trigger | ||
15 | **/ | ||
16 | void iio_device_register_trigger_consumer(struct iio_dev *indio_dev); | ||
17 | |||
18 | /** | ||
19 | * iio_device_unregister_trigger_consumer() - reverse the registration process | ||
20 | * @indio_dev: iio_dev associated with the device that consumed the trigger | ||
21 | **/ | ||
22 | void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev); | ||
23 | |||
24 | #else | ||
25 | |||
26 | /** | ||
27 | * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers | ||
28 | * @indio_dev: iio_dev associated with the device that will consume the trigger | ||
29 | **/ | ||
30 | static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) | ||
31 | { | ||
32 | return 0; | ||
33 | }; | ||
34 | |||
35 | /** | ||
36 | * iio_device_unregister_trigger_consumer() - reverse the registration process | ||
37 | * @indio_dev: iio_dev associated with the device that consumed the trigger | ||
38 | **/ | ||
39 | static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) | ||
40 | { | ||
41 | }; | ||
42 | |||
43 | #endif /* CONFIG_TRIGGER_CONSUMER */ | ||
44 | |||
45 | |||
46 | |||