MIPS: BCM63XX: Introduce bcm_readq & bcm_writeq.
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / staging / iio / iio_core_trigger.h
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
17 int iio_device_register_trigger_consumer(struct iio_dev *indio_dev);
18
19 /**
20  * iio_device_unregister_trigger_consumer() - reverse the registration process
21  * @indio_dev: iio_dev associated with the device that consumed the trigger
22  **/
23 void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev);
24
25 #else
26
27 /**
28  * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
29  * @indio_dev: iio_dev associated with the device that will consume the trigger
30  **/
31 static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
32 {
33         return 0;
34 };
35
36 /**
37  * iio_device_unregister_trigger_consumer() - reverse the registration process
38  * @indio_dev: iio_dev associated with the device that consumed the trigger
39  **/
40 static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
41 {
42 };
43
44 #endif /* CONFIG_TRIGGER_CONSUMER */
45
46
47