diff options
author | Jonathan Cameron | 2011-04-15 19:55:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-04-26 02:23:09 +0200 |
commit | b428173316dcb4a518ee22c642671ae8a4bcec48 (patch) | |
tree | d66dfcf2c5b6469d72b52fe21a9fcf2553b73ada /drivers/staging/iio/kfifo_buf.h | |
parent | staging:iio: iio_trigger_unregister - remove rather strange search for what w... (diff) | |
download | kernel-qcow2-linux-b428173316dcb4a518ee22c642671ae8a4bcec48.tar.gz kernel-qcow2-linux-b428173316dcb4a518ee22c642671ae8a4bcec48.tar.xz kernel-qcow2-linux-b428173316dcb4a518ee22c642671ae8a4bcec48.zip |
staging:iio: replace rip_lots naming with read_first_n
Change suggested by Arnd Bergmann, Related patch to remove
pointless (now) dead_offset parameter will have await
proper fix for the sca3000 driver. That depends on
some intermediate patches so may be a little while.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/kfifo_buf.h')
-rw-r--r-- | drivers/staging/iio/kfifo_buf.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/iio/kfifo_buf.h b/drivers/staging/iio/kfifo_buf.h index 8064383bf7c3..457010d8af86 100644 --- a/drivers/staging/iio/kfifo_buf.h +++ b/drivers/staging/iio/kfifo_buf.h @@ -21,10 +21,10 @@ void iio_mark_kfifo_in_use(struct iio_ring_buffer *r); void iio_unmark_kfifo_in_use(struct iio_ring_buffer *r); int iio_store_to_kfifo(struct iio_ring_buffer *r, u8 *data, s64 timestamp); -int iio_rip_kfifo(struct iio_ring_buffer *r, - size_t count, - char __user *buf, - int *dead_offset); +int iio_read_first_n_kfifo(struct iio_ring_buffer *r, + size_t n, + char __user *buf, + int *dead_offset); int iio_request_update_kfifo(struct iio_ring_buffer *r); int iio_mark_update_needed_kfifo(struct iio_ring_buffer *r); @@ -40,7 +40,7 @@ static inline void iio_kfifo_register_funcs(struct iio_ring_access_funcs *ra) ra->unmark_in_use = &iio_unmark_kfifo_in_use; ra->store_to = &iio_store_to_kfifo; - ra->rip_lots = &iio_rip_kfifo; + ra->read_first_n = &iio_read_first_n_kfifo; ra->mark_param_change = &iio_mark_update_needed_kfifo; ra->request_update = &iio_request_update_kfifo; |