hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/linux/iio/trigger_consumer.h
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* The industrial I/O core, trigger consumer functions
23 *
34 * Copyright (c) 2008-2011 Jonathan Cameron
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License version 2 as published by
7
- * the Free Software Foundation.
85 */
96
107 #ifndef __LINUX_IIO_TRIGGER_CONSUMER_H__
....@@ -41,7 +38,7 @@
4138 };
4239
4340
44
-struct iio_poll_func
41
+__printf(5, 6) struct iio_poll_func
4542 *iio_alloc_pollfunc(irqreturn_t (*h)(int irq, void *p),
4643 irqreturn_t (*thread)(int irq, void *p),
4744 int type,
....@@ -52,12 +49,5 @@
5249 irqreturn_t iio_pollfunc_store_time(int irq, void *p);
5350
5451 void iio_trigger_notify_done(struct iio_trigger *trig);
55
-
56
-/*
57
- * Two functions for common case where all that happens is a pollfunc
58
- * is attached and detached from a trigger
59
- */
60
-int iio_triggered_buffer_postenable(struct iio_dev *indio_dev);
61
-int iio_triggered_buffer_predisable(struct iio_dev *indio_dev);
6252
6353 #endif