iio: buffer: Drop get_length callback
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:17 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:34 +0000 (12:28 +0000)
We already do have the length field in the struct iio_buffer which is
expected to be in sync with the current size of the buffer. And currently
all implementations of the get_length callback either return this field or a
constant number.

This patch removes the get_length callback and replaces all occurrences in
the IIO core with directly accessing the length field of the buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c
drivers/iio/kfifo_buf.c
drivers/staging/iio/Documentation/ring.txt
drivers/staging/iio/accel/sca3000_ring.c
include/linux/iio/buffer.h

Simple merge
Simple merge
Simple merge