| .. | .. |
|---|
| 1 | | -/** |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 2 | +/* |
|---|
| 2 | 3 | * Copyright (c) 2011 Jonathan Cameron |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 5 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 6 | | - * the Free Software Foundation. |
|---|
| 7 | 4 | * |
|---|
| 8 | 5 | * Buffer handling elements of industrial I/O reference driver. |
|---|
| 9 | 6 | * Uses the kfifo buffer. |
|---|
| .. | .. |
|---|
| 102 | 99 | } |
|---|
| 103 | 100 | |
|---|
| 104 | 101 | static const struct iio_buffer_setup_ops iio_simple_dummy_buffer_setup_ops = { |
|---|
| 105 | | - /* |
|---|
| 106 | | - * iio_triggered_buffer_postenable: |
|---|
| 107 | | - * Generic function that simply attaches the pollfunc to the trigger. |
|---|
| 108 | | - * Replace this to mess with hardware state before we attach the |
|---|
| 109 | | - * trigger. |
|---|
| 110 | | - */ |
|---|
| 111 | | - .postenable = &iio_triggered_buffer_postenable, |
|---|
| 112 | | - /* |
|---|
| 113 | | - * iio_triggered_buffer_predisable: |
|---|
| 114 | | - * Generic function that simple detaches the pollfunc from the trigger. |
|---|
| 115 | | - * Replace this to put hardware state back again after the trigger is |
|---|
| 116 | | - * detached but before userspace knows we have disabled the ring. |
|---|
| 117 | | - */ |
|---|
| 118 | | - .predisable = &iio_triggered_buffer_predisable, |
|---|
| 119 | 102 | }; |
|---|
| 120 | 103 | |
|---|
| 121 | 104 | int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev) |
|---|
| .. | .. |
|---|
| 182 | 165 | |
|---|
| 183 | 166 | /** |
|---|
| 184 | 167 | * iio_simple_dummy_unconfigure_buffer() - release buffer resources |
|---|
| 185 | | - * @indo_dev: device instance state |
|---|
| 168 | + * @indio_dev: device instance state |
|---|
| 186 | 169 | */ |
|---|
| 187 | 170 | void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev) |
|---|
| 188 | 171 | { |
|---|