Commit f32971ce authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:buffer stop allowing for read_last callback.

No longer needed now we don't allow sysfs acccess to buffer data.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c0e9e6ba
...@@ -21,7 +21,6 @@ struct iio_buffer; ...@@ -21,7 +21,6 @@ struct iio_buffer;
* @mark_in_use: reference counting, typically to prevent module removal * @mark_in_use: reference counting, typically to prevent module removal
* @unmark_in_use: reduce reference count when no longer using buffer * @unmark_in_use: reduce reference count when no longer using buffer
* @store_to: actually store stuff to the buffer * @store_to: actually store stuff to the buffer
* @read_last: get the last element stored
* @read_first_n: try to get a specified number of elements (must exist) * @read_first_n: try to get a specified number of elements (must exist)
* @mark_param_change: notify buffer that some relevant parameter has changed * @mark_param_change: notify buffer that some relevant parameter has changed
* Often this means the underlying storage may need to * Often this means the underlying storage may need to
...@@ -48,7 +47,6 @@ struct iio_buffer_access_funcs { ...@@ -48,7 +47,6 @@ struct iio_buffer_access_funcs {
void (*unmark_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 (*store_to)(struct iio_buffer *buffer, u8 *data, s64 timestamp);
int (*read_last)(struct iio_buffer *buffer, u8 *data);
int (*read_first_n)(struct iio_buffer *buffer, int (*read_first_n)(struct iio_buffer *buffer,
size_t n, size_t n,
char __user *buf); char __user *buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment