Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.4-rc7 40 lines 1.2 kB view raw
1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3/* The industrial I/O core, trigger consumer handling functions 4 * 5 * Copyright (c) 2008 Jonathan Cameron 6 */ 7 8#ifdef CONFIG_IIO_TRIGGER 9/** 10 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers 11 * @indio_dev: iio_dev associated with the device that will consume the trigger 12 **/ 13void iio_device_register_trigger_consumer(struct iio_dev *indio_dev); 14 15/** 16 * iio_device_unregister_trigger_consumer() - reverse the registration process 17 * @indio_dev: iio_dev associated with the device that consumed the trigger 18 **/ 19void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev); 20 21#else 22 23/** 24 * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers 25 * @indio_dev: iio_dev associated with the device that will consume the trigger 26 **/ 27static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) 28{ 29 return 0; 30} 31 32/** 33 * iio_device_unregister_trigger_consumer() - reverse the registration process 34 * @indio_dev: iio_dev associated with the device that consumed the trigger 35 **/ 36static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) 37{ 38} 39 40#endif /* CONFIG_TRIGGER_CONSUMER */