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