From: Lars-Peter Clausen Date: Wed, 26 Nov 2014 17:55:17 +0000 (+0100) Subject: iio: buffer: Drop get_length callback X-Git-Tag: fixes-v4.0-rc1~99^2~245^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374956600ecbedf5ca29c76bde114160eb805091;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed