Jonathan Cameron | 847ec80 | 2009-08-18 18:06:19 +0100 | [diff] [blame] | 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 | |
Jonathan Cameron | 1637db4 | 2009-08-18 18:06:26 +0100 | [diff] [blame^] | 11 | #ifdef CONFIG_IIO_TRIGGER |
| 12 | /** |
| 13 | * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers. |
| 14 | * @dev_info: iio_dev associated with the device that will consume the trigger |
| 15 | **/ |
| 16 | int iio_device_register_trigger_consumer(struct iio_dev *dev_info); |
| 17 | /** |
| 18 | * iio_device_unregister_trigger_consumer() - reverse the registration process. |
| 19 | * @dev_info: iio_dev associated with the device that consumed the trigger |
| 20 | **/ |
| 21 | int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info); |
| 22 | |
| 23 | #else |
| 24 | |
Jonathan Cameron | 847ec80 | 2009-08-18 18:06:19 +0100 | [diff] [blame] | 25 | /** |
| 26 | * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers. |
| 27 | * @dev_info: iio_dev associated with the device that will consume the trigger |
| 28 | **/ |
| 29 | int iio_device_register_trigger_consumer(struct iio_dev *dev_info) |
| 30 | { |
| 31 | return 0; |
| 32 | }; |
| 33 | /** |
| 34 | * iio_device_unregister_trigger_consumer() - reverse the registration process |
Jonathan Cameron | 1637db4 | 2009-08-18 18:06:26 +0100 | [diff] [blame^] | 35 | * @dev_info: iio_dev associated with the device that consumed the trigger |
Jonathan Cameron | 847ec80 | 2009-08-18 18:06:19 +0100 | [diff] [blame] | 36 | **/ |
| 37 | int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info) |
| 38 | { |
| 39 | return 0; |
| 40 | }; |
Jonathan Cameron | 1637db4 | 2009-08-18 18:06:26 +0100 | [diff] [blame^] | 41 | |
| 42 | #endif /* CONFIG_TRIGGER_CONSUMER */ |
| 43 | |
| 44 | |
| 45 | |