| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* The industrial I/O core, trigger consumer functions |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * 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. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #ifndef __LINUX_IIO_TRIGGER_CONSUMER_H__ |
|---|
| .. | .. |
|---|
| 41 | 38 | }; |
|---|
| 42 | 39 | |
|---|
| 43 | 40 | |
|---|
| 44 | | -struct iio_poll_func |
|---|
| 41 | +__printf(5, 6) struct iio_poll_func |
|---|
| 45 | 42 | *iio_alloc_pollfunc(irqreturn_t (*h)(int irq, void *p), |
|---|
| 46 | 43 | irqreturn_t (*thread)(int irq, void *p), |
|---|
| 47 | 44 | int type, |
|---|
| .. | .. |
|---|
| 52 | 49 | irqreturn_t iio_pollfunc_store_time(int irq, void *p); |
|---|
| 53 | 50 | |
|---|
| 54 | 51 | 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); |
|---|
| 62 | 52 | |
|---|
| 63 | 53 | #endif |
|---|