summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/buffer.h
diff options
context:
space:
mode:
authorLars-Peter Clausen2011-12-19 15:23:49 +0100
committerGreg Kroah-Hartman2011-12-22 22:38:10 +0100
commit7933514043d42e69663a5123a53fab50eb0b4aba (patch)
tree1563ca434350c338176f0c9e6cc4648882ad74d0 /drivers/staging/iio/buffer.h
parentstaging:iio: Drop buffer mark_param_change callback (diff)
downloadkernel-qcow2-linux-7933514043d42e69663a5123a53fab50eb0b4aba.tar.gz
kernel-qcow2-linux-7933514043d42e69663a5123a53fab50eb0b4aba.tar.xz
kernel-qcow2-linux-7933514043d42e69663a5123a53fab50eb0b4aba.zip
staging:iio: Drop {mark,unmark}_in_use callbacks
These callbacks are currently used by the individual buffer implementations to ensure that the request_update callback is not issued while the buffer is in use. But the core already provides sufficient measures to prevent this from happening in the first place. So it is safe to remove them. There is one functional change due to this patch. Since the buffer is no longer marked as in use when the chrdev is opened, it is now possible to enable the buffer while it is opened. This did not work before, because mark_param_change did fail if the buffer was marked as in use. Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/buffer.h')
-rw-r--r--drivers/staging/iio/buffer.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/iio/buffer.h b/drivers/staging/iio/buffer.h
index ea42b5d27e31..6fb6e64181a5 100644
--- a/drivers/staging/iio/buffer.h
+++ b/drivers/staging/iio/buffer.h
@@ -18,8 +18,6 @@ struct iio_buffer;
/**
* struct iio_buffer_access_funcs - access functions for buffers.
- * @mark_in_use: reference counting, typically to prevent module removal
- * @unmark_in_use: reduce reference count when no longer using buffer
* @store_to: actually store stuff to the buffer
* @read_first_n: try to get a specified number of bytes (must exist)
* @request_update: if a parameter change has been marked, update underlying
@@ -38,9 +36,6 @@ struct iio_buffer;
* any of them not existing.
**/
struct iio_buffer_access_funcs {
- void (*mark_in_use)(struct iio_buffer *buffer);
- void (*unmark_in_use)(struct iio_buffer *buffer);
-
int (*store_to)(struct iio_buffer *buffer, u8 *data, s64 timestamp);
int (*read_first_n)(struct iio_buffer *buffer,
size_t n,