Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iio_core_trigger.h
Go to the documentation of this file.
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 
16 void iio_device_register_trigger_consumer(struct iio_dev *indio_dev);
17 
22 void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev);
23 
24 #else
25 
30 static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
31 {
32  return 0;
33 };
34 
39 static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
40 {
41 };
42 
43 #endif /* CONFIG_TRIGGER_CONSUMER */
44 
45 
46