forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/iio/dummy/iio_simple_dummy_buffer.c
....@@ -1,9 +1,6 @@
1
-/**
1
+// SPDX-License-Identifier: GPL-2.0-only
2
+/*
23 * 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.
74 *
85 * Buffer handling elements of industrial I/O reference driver.
96 * Uses the kfifo buffer.
....@@ -102,20 +99,6 @@
10299 }
103100
104101 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,
119102 };
120103
121104 int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
....@@ -182,7 +165,7 @@
182165
183166 /**
184167 * iio_simple_dummy_unconfigure_buffer() - release buffer resources
185
- * @indo_dev: device instance state
168
+ * @indio_dev: device instance state
186169 */
187170 void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev)
188171 {