blob: 3e5195a82bca5930c2cd99939f2a1a0909ca9aa6 [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 **/
Jonathan Cameroncb6c89a2011-08-24 17:28:40 +010022void iio_device_unregister_trigger_consumer(struct iio_dev *dev_info);
Jonathan Cameron1637db42009-08-18 18:06:26 +010023
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 **/
Mark Brown77712e52010-02-18 17:19:17 +000030static int iio_device_register_trigger_consumer(struct iio_dev *dev_info)
Jonathan Cameron847ec802009-08-18 18:06:19 +010031{
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 **/
Jonathan Cameroncb6c89a2011-08-24 17:28:40 +010039static void iio_device_unregister_trigger_consumer(struct iio_dev *dev_info)
Jonathan Cameron847ec802009-08-18 18:06:19 +010040{
Jonathan Cameron847ec802009-08-18 18:06:19 +010041};
Jonathan Cameron1637db42009-08-18 18:06:26 +010042
43#endif /* CONFIG_TRIGGER_CONSUMER */
44
45
46