• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/iio/
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 * @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);
17
18/**
19 * iio_device_unregister_trigger_consumer() - reverse the registration process
20 * @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
26/**
27 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers
28 * @dev_info: iio_dev associated with the device that will consume the trigger
29 **/
30static int iio_device_register_trigger_consumer(struct iio_dev *dev_info)
31{
32	return 0;
33};
34
35/**
36 * iio_device_unregister_trigger_consumer() - reverse the registration process
37 * @dev_info: iio_dev associated with the device that consumed the trigger
38 **/
39static int iio_device_unregister_trigger_consumer(struct iio_dev *dev_info)
40{
41	return 0;
42};
43
44#endif /* CONFIG_TRIGGER_CONSUMER */
45