| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* The industrial I/O core, trigger consumer handling functions
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (c) 2008 Jonathan Cameron | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify it | 
					
						
							|  |  |  |  * under the terms of the GNU General Public License version 2 as published by | 
					
						
							|  |  |  |  * the Free Software Foundation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  | #ifdef CONFIG_IIO_TRIGGER
 | 
					
						
							|  |  |  | /**
 | 
					
						
							| 
									
										
										
										
											2009-10-04 19:34:02 -07:00
										 |  |  |  * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  |  * @indio_dev: iio_dev associated with the device that will consume the trigger | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  |  **/ | 
					
						
							| 
									
										
										
										
											2011-10-26 17:27:38 +01:00
										 |  |  | void iio_device_register_trigger_consumer(struct iio_dev *indio_dev); | 
					
						
							| 
									
										
										
										
											2009-10-04 19:34:02 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  | /**
 | 
					
						
							| 
									
										
										
										
											2009-10-04 19:34:02 -07:00
										 |  |  |  * iio_device_unregister_trigger_consumer() - reverse the registration process | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  |  * @indio_dev: iio_dev associated with the device that consumed the trigger | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  |  **/ | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  | void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev); | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  | /**
 | 
					
						
							| 
									
										
										
										
											2009-10-04 19:34:02 -07:00
										 |  |  |  * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  |  * @indio_dev: iio_dev associated with the device that will consume the trigger | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  |  **/ | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  | static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  | { | 
					
						
							|  |  |  | 	return 0; | 
					
						
							| 
									
										
										
										
											2013-07-07 21:24:00 +01:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2009-10-04 19:34:02 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * iio_device_unregister_trigger_consumer() - reverse the registration process | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  |  * @indio_dev: iio_dev associated with the device that consumed the trigger | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  |  **/ | 
					
						
							| 
									
										
										
										
											2011-10-06 17:14:35 +01:00
										 |  |  | static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:19 +01:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2013-07-07 21:24:00 +01:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2009-08-18 18:06:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* CONFIG_TRIGGER_CONSUMER */
 |