Root/
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 | |
47 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9