mm/page_alloc: prevent merging between isolated and other pageblocks
[linux-2.6-block.git] / drivers / iio / iio_core_trigger.h
CommitLineData
847ec80b
JC
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
1637db44
JC
11#ifdef CONFIG_IIO_TRIGGER
12/**
4c572605 13 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
f8c6f4e9 14 * @indio_dev: iio_dev associated with the device that will consume the trigger
1637db44 15 **/
67be8e32 16void iio_device_register_trigger_consumer(struct iio_dev *indio_dev);
4c572605 17
1637db44 18/**
4c572605 19 * iio_device_unregister_trigger_consumer() - reverse the registration process
f8c6f4e9 20 * @indio_dev: iio_dev associated with the device that consumed the trigger
1637db44 21 **/
f8c6f4e9 22void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev);
1637db44
JC
23
24#else
25
847ec80b 26/**
4c572605 27 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
f8c6f4e9 28 * @indio_dev: iio_dev associated with the device that will consume the trigger
847ec80b 29 **/
f8c6f4e9 30static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
847ec80b
JC
31{
32 return 0;
70ea35fb 33}
4c572605 34
847ec80b
JC
35/**
36 * iio_device_unregister_trigger_consumer() - reverse the registration process
f8c6f4e9 37 * @indio_dev: iio_dev associated with the device that consumed the trigger
847ec80b 38 **/
f8c6f4e9 39static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
847ec80b 40{
70ea35fb 41}
1637db44
JC
42
43#endif /* CONFIG_TRIGGER_CONSUMER */