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)
commit374956600ecbedf5ca29c76bde114160eb805091
tree2276389687295dfa2d3704795e6b8a6b1b52257b
parent8d92db2827b68206f6930e79132243416183e083
iio: buffer: Drop get_length callback

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
This page took 0.040073 seconds and 5 git commands to generate.