aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/ring_sw.h
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-02-11 13:09:09 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:22:50 -0800
commitd5857d65b5f7fab78c69da4085f0ce85a0399b25 (patch)
treef6c9dc35ce16ef374a85867fc6f4d8287aa86769 /drivers/staging/iio/ring_sw.h
parentstaging: iio: ak8975: add platform data. (diff)
downloadlinux-dev-d5857d65b5f7fab78c69da4085f0ce85a0399b25.tar.xz
linux-dev-d5857d65b5f7fab78c69da4085f0ce85a0399b25.zip
staging:iio:buffering move the copy to user on rip down into implementations
The current interface is not as adaptable as it should be. Moving this complexity into the implementations makes it easier to add new implementations. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Tested-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/ring_sw.h')
-rw-r--r--drivers/staging/iio/ring_sw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/ring_sw.h b/drivers/staging/iio/ring_sw.h
index ad03d832c1b9..13341c1e35f2 100644
--- a/drivers/staging/iio/ring_sw.h
+++ b/drivers/staging/iio/ring_sw.h
@@ -96,13 +96,13 @@ int iio_store_to_sw_rb(struct iio_ring_buffer *r, u8 *data, s64 timestamp);
* iio_rip_sw_rb() - attempt to read data from the ring buffer
* @r: ring buffer instance
* @count: number of datum's to try and read
- * @data: where the data will be stored.
+ * @buf: userspace buffer into which data is copied
* @dead_offset: how much of the stored data was possibly invalidated by
* the end of the copy.
**/
int iio_rip_sw_rb(struct iio_ring_buffer *r,
size_t count,
- u8 **data,
+ char __user *buf,
int *dead_offset);
/**