blob: a02d70b0d24ad05e6fd9e5d3a8240e2238997954 [file] [log] [blame]
Jonathan Cameron847ec802009-08-18 18:06:19 +01001
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 Cameron1637db42009-08-18 18:06:26 +010011#ifdef CONFIG_IIO_TRIGGER
12/**
Randy Dunlap4c572602009-10-04 19:34:02 -070013 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
Jonathan Cameron1637db42009-08-18 18:06:26 +010014 * @dev_info: iio_dev associated with the device that will consume the trigger
15 **/
16int iio_device_register_trigger_consumer(struct iio_dev *dev_info);
Randy Dunlap4c572602009-10-04 19:34:02 -070017
Jonathan Cameron1637db42009-08-18 18:06:26 +010018/**
Randy Dunlap4c572602009-10-04 19:34:02 -070019 * iio_device_unregister_trigger_consumer() - reverse the registration process
Jonathan Cameron1637db42009-08-18 18:06:26 +010020 * @dev_info: iio_dev associated with the device that consumed the trigger
21 **/
22int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info);
23
24#else
25
Jonathan Cameron847ec802009-08-18 18:06:19 +010026/**
Randy Dunlap4c572602009-10-04 19:34:02 -070027 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
Jonathan Cameron847ec802009-08-18 18:06:19 +010028 * @dev_info: iio_dev associated with the device that will consume the trigger
29 **/
30int iio_device_register_trigger_consumer(struct iio_dev *dev_info)
31{
32 return 0;
33};
Randy Dunlap4c572602009-10-04 19:34:02 -070034
Jonathan Cameron847ec802009-08-18 18:06:19 +010035/**
36 * iio_device_unregister_trigger_consumer() - reverse the registration process
Jonathan Cameron1637db42009-08-18 18:06:26 +010037 * @dev_info: iio_dev associated with the device that consumed the trigger
Jonathan Cameron847ec802009-08-18 18:06:19 +010038 **/
39int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info)
40{
41 return 0;
42};
Jonathan Cameron1637db42009-08-18 18:06:26 +010043
44#endif /* CONFIG_TRIGGER_CONSUMER */
45
46
47